Migrate local forks to Anvil - #2999
Open
clement-ux wants to merge 1 commit into
Open
Conversation
clement-ux
requested review from
naddison36,
shahthepro and
sparrowDom
as code owners
September 1, 2026 07:47
This was referenced Sep 1, 2026
clement-ux
force-pushed
the
chore/migrate-local-node-to-anvil
branch
from
September 1, 2026 08:04
866e970 to
45a4542
Compare
clement-ux
force-pushed
the
chore/migrate-local-node-to-anvil
branch
from
September 1, 2026 08:25
45a4542 to
1f72c9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plain-English summary
After #2998, operational commands no longer need Hardhat. One active Hardhat job remains: starting a local blockchain or a fork of a live network for development and simulation.
This PR replaces that node with Anvil. The previous Hardhat node is kept temporarily as a comparison tool so we can generate the same Safe transaction with both implementations and compare the important fields before deleting Hardhat.
Before and after
For Safe batches, both paths are run and compared on:
chainIdtovaluedataGas estimates and metadata are intentionally ignored because they are node-specific and do not change the transaction's meaning.
What changes in this PR
anvil_*RPC methods;hardhat-node.shfor temporary A/B comparison;What does not change yet
Stack and merge order
Base: #2998 (
chore/introduce-standalone-ops-cli)Merge in cascade: #3000 → #2999 → #2998 → #2997 →
master.What to review
Please focus on node and simulation parity:
Validation
pnpm test:tasks— 38 passingpnpm test:anvil— 3 passingpnpm test:brownie— 4 passingpnpm test:scripts— 66 passingpnpm test:layouts— 11 passingpnpm typecheckpnpm lint:js,pnpm lint:ts,pnpm prettier:check