Closed JABirchall closed 11 months ago
Thanks for reporting the issue. AFAIU, this is unfortunately somewhat expected for that contract. Specifically, the contract makes use of immutable
which are values that get stored in the contract code at init time:
This means that the deployedBytecode
for the contract artefact will incorrectly have push32 0
placeholders where the immutable gets used instead of the actual value in the code that is being read from the RPC node that it is comparing to.
The correct fix would be to correctly mask the immutable placeholders from the retrieved contract byte code before hashing and comparing.
With that in mind, this is a valid issue that should be fixed in the local-verify
script, but I do believe it is safe to ignore.
With that in mind, this is a valid issue that should be fixed in the
local-verify
script, but I do believe it is safe to ignore.
Cool, as long as its something ive not done wrong :P
Prerequisites
Add custom network node URL Follow custom chain deployment
npm run deploy-all custom
Description
I was following instructions to deploy safe-contracts on a custom network, and after running the commands, 2 contracts failed local verify.
Notice how SimulateTxAccessor and MultiSend failed local verify. The addresses seems to be correct, but the bytecode verification fails.
Environment
Steps to reproduce
Add custom network node URL Follow custom chain deployment
npm run deploy-all custom
Additional context
I dont know if this is a major issue or something, or if there is a problem with the deployment. But I thought it might be worth raising