Skip to content

Commit

Permalink
Fix forkUrl option handling (#105)
Browse files Browse the repository at this point in the history
* Fix forkUrl option handling

* Create thick-hats-unite.md

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
astanciu and mattsse authored Oct 2, 2022
1 parent 0fc60e5 commit 83a5e01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/thick-hats-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@foundry-rs/hardhat-anvil": patch
"@foundry-rs/hardhat": patch
---

Fix forkUrl option handling
4 changes: 2 additions & 2 deletions packages/hardhat-anvil/src/anvil-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 83a5e01

Please sign in to comment.