Deployed bytecode is not equal to the generated one from a given source #507
Replies: 4 comments 8 replies
-
Any luck with verifying them via the Block Explorer? https://explorer.zksync.io/contracts/verify Are any of the contracts you're trying to verify, deployed by another contract? There is a known issue with not being able to verify contracts deployed by other contracts right now. |
Beta Was this translation helpful? Give feedback.
-
Hey @lbeder , we've verified your contract: https://explorer.zksync.io/address/0x21d8d4eE83b80bc0Cc0f2B7df3117Cf212d02901#contract. |
Beta Was this translation helpful? Give feedback.
-
Already reported in the |
Beta Was this translation helpful? Give feedback.
-
@lbeder according to the solc v0.8.26 release notes, a bug like that was fixed in 0.8.26, so I recommend trying that version when we release a |
Beta Was this translation helpful? Give feedback.
-
Environment
Mainnet
Issue Type
Contract Address
0x21d8d4eE83b80bc0Cc0f2B7df3117Cf212d02901
Compiler Type
Multi-part contract
zkSolc Version
1.4.1
Solc Version
0.8.19
Contract Name
EAS
Contract Code
Please here: https://github.com/ethereum-attestation-service/eas-contracts/blob/zksync/contracts/EAS.sol
Constructor Arguments
Please here: https://github.com/ethereum-attestation-service/eas-contracts/blob/zksync/contracts/EAS.sol
Hardhat Verify Plugin Version
1.4.2
Repo Link (Optional)
https://github.com/ethereum-attestation-service/eas-contracts/tree/zksync
Additional Details
We deployed 4 EAS contracts, but the main EAS contracts cannot be verified. They deployed and complied, but only one contract cannot be verified (our main contract). We also tried verifying in the UI, but that didn't work either. Seems to be some syntax mismatch?
ErrorCode:
ZkSyncVerifyPluginError: Backend verification error: Deployed bytecode is not equal to the generated one from a given source
You can find the verification script here: https://github.com/ethereum-attestation-service/eas-contracts/blob/zksync/scripts/verify.ts, but please note that manual verification using the UX (using a flattened version) didn't work either.
Related branch of our deployment:
https://github.com/ethereum-attestation-service/eas-contracts/tree/zksync
Beta Was this translation helpful? Give feedback.
All reactions