Stuck Writing Foundry Deployment Script for ERC20 - Need Clear Guidance #10865
Replies: 1 comment 1 reply
-
if not enabled it will create a block on demand |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I'm using Foundry and running make anvil, but my terminal keeps endlessly printing logs like:
Block Number: 1
Block Hash: 0x...
Block Time: "Fri, 27 Jun 2025 10:16:05 +0000"
This starts from block 1 and just keeps incrementing every second — forever.
Here’s what I’ve tried:
Removed --steps-tracing from the Makefile
Confirmed my deploy script has no console.log or block logging
Ran grep to check for block.number or Block Number in my entire codebase — nothing found
Verified no background processes are running with ps aux
Even rebooted my Mac completely
The make anvil command in my Makefile looks like this now:
makefile
anvil :; anvil -m 'test test test test test test test test test test test junk' --block-time 1
I’m not using cast, not running any frontend app or node watcher. Just plain Foundry + VS Code. Still getting this log spam every second and can’t find the source.
Any idea what might be causing this or how to trace it?
Thanks in advance 🙏
Beta Was this translation helpful? Give feedback.
All reactions