Contract has non-empty code in body of a script but not in a constructor of another contract #11691
Unanswered
hacker-DOM
asked this question in
Help
Replies: 0 comments
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.
-
I am encountering a very strange issue. I have
The result:
The error message indeed corresponds to the require:
Aka, it seems to be ✅ working for a local empty simulation, but ❌ not for a local forking simulation. I have
MAINNET_RPC_URL
set correctly to a correct endpointI have pushed the code: https://github.com/hacker-DOM/foundry-issue-empty-contract-in-after-deployment-in-script/blob/a478aad33d66469349b18a8a48b4cf5adbd9eee7/script/Counter.s.sol#L23.
Beta Was this translation helpful? Give feedback.
All reactions