You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to deploy a contract using a salt calculated using cast create2, it works correctly when vm.startBroadcast() is called (and pointing to a local anvil node) - but does not generate the correct address when not broadcast.
The following script will fail the require() statement at the end - but uncommenting the vm.startBroadcast() line will cause it to pass.
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (7b45265 2023-11-21T00:18:30.267248000Z)
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
When trying to deploy a contract using a salt calculated using
cast create2
, it works correctly whenvm.startBroadcast()
is called (and pointing to a local anvil node) - but does not generate the correct address when not broadcast.The following script will fail the
require()
statement at the end - but uncommenting thevm.startBroadcast()
line will cause it to pass.Example repo: https://github.com/0xCLARITY/test-create2
The text was updated successfully, but these errors were encountered: