Skip to content

Commit

Permalink
feat(create-mud): change anvil to create a block every two seconds (#…
Browse files Browse the repository at this point in the history
…2635)

Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
qbzzt and holic authored Apr 12, 2024
1 parent c187d4c commit aa6ecf7
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-dots-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-mud": patch
---

Updated `anvil` args with two second block time to better reflect L2s
2 changes: 1 addition & 1 deletion examples/minimal/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ procs:
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0
shell: anvil --base-fee 0 --block-time 2
2 changes: 1 addition & 1 deletion examples/multiple-accounts/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ procs:
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0
shell: anvil --base-fee 0 --block-time 2
2 changes: 1 addition & 1 deletion templates/phaser/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ procs:
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0
shell: anvil --base-fee 0 --block-time 2
2 changes: 1 addition & 1 deletion templates/react-ecs/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ procs:
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0
shell: anvil --base-fee 0 --block-time 2
2 changes: 1 addition & 1 deletion templates/react/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ procs:
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0
shell: anvil --base-fee 0 --block-time 2
2 changes: 1 addition & 1 deletion templates/threejs/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ procs:
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0
shell: anvil --base-fee 0 --block-time 2
2 changes: 1 addition & 1 deletion templates/vanilla/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ procs:
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0
shell: anvil --base-fee 0 --block-time 2

0 comments on commit aa6ecf7

Please sign in to comment.