Skip to content

Converge on using the "Dev" chainspec instead of AnvilHardhat to avoid inconsistencies#220

Open
nategraf wants to merge 4 commits intomainfrom
victor/feb13-10237097
Open

Converge on using the "Dev" chainspec instead of AnvilHardhat to avoid inconsistencies#220
nategraf wants to merge 4 commits intomainfrom
victor/feb13-10237097

Conversation

@nategraf
Copy link
Member

When running integration tests including Anvil, I started to hit an issue related to inconsistencies in whether the Dev or AnvilHardhat chainspecs were used. This PR converges on Dev to resolve that issue. This requires setting the Anvil chain ID to 1337 in tests.

@nategraf nategraf enabled auto-merge (squash) February 13, 2026 23:50
Copy link
Contributor

@Wollac Wollac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What issues exactly are you observing?
Anvil doesn't have a well-defined EVM version and it depends on whichever revm is bundled in that Foundry release. So the zeth chainspec could end up inconsistent with what Anvil actually executes.
To be really consistent, we should target reth --dev which has a well-defined chainspec (DEV_HARDFORKS, currently up to Prague) that matches our pinned reth v1.10.2. If you still want to use Anvil for convenience, you can emulate it with anvil --chain-id 1337 --hardfork prague.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants