diff --git a/.changeset/thick-hats-unite.md b/.changeset/thick-hats-unite.md new file mode 100644 index 0000000..0fe65c1 --- /dev/null +++ b/.changeset/thick-hats-unite.md @@ -0,0 +1,6 @@ +--- +"@foundry-rs/hardhat-anvil": patch +"@foundry-rs/hardhat": patch +--- + +Fix forkUrl option handling diff --git a/packages/hardhat-anvil/src/anvil-server.ts b/packages/hardhat-anvil/src/anvil-server.ts index ddd142e..b4f1154 100644 --- a/packages/hardhat-anvil/src/anvil-server.ts +++ b/packages/hardhat-anvil/src/anvil-server.ts @@ -55,8 +55,8 @@ export class AnvilServer { if (options.chainId) { args.push("--chain-id", options.chainId); } - if (options.forkurl) { - args.push("--fork-url", options.forkurl); + if (options.forkUrl) { + args.push("--fork-url", options.forkUrl); if (options.forkBlockNumber) { args.push("--fork-block-number", options.forkBlockNumber); }