Foundry does not create a new, clean EVM environment when the chainId
is changed
#6008
Closed
2 tasks done
Labels
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (87283bc 2023-10-07T00:16:07.431446791Z)
What command(s) is the bug in?
forge test
Operating System
Linux
Describe the bug
Foundry does not create a new, clean EVM environment when the
chainId
is changed, and a deployment of a contract to the same address therefore fails. To solve this problem currently, I return to the original snapshot state.Simple repro:
CREATE2
deploy a contractchainId
to an ID viavm.chainId
that is not equal to the originalchainId
CREATE2
The text was updated successfully, but these errors were encountered: