Closed pcaversaccio closed 1 week ago
Hello @pcaversaccio ,
It appears that Etherscan currently does not support zksolc version 1.5.7, which causes a backend error. We cloned your repository and tested it with version 1.5.6, and everything worked successfully. You can see the verification here: https://sepolia-era.zksync.network/address/0x6b17994de1a3447C95d03af991C67E218ac9B77a#code.
Hello @pcaversaccio ,
It appears that Etherscan currently does not support zksolc version 1.5.7, which causes a backend error. We cloned your repository and tested it with version 1.5.6, and everything worked successfully. You can see the verification here: https://sepolia-era.zksync.network/address/0x6b17994de1a3447C95d03af991C67E218ac9B77a#code.
Ah interesting! I thought for a while it was me doing something wrong. Can you ping them maybe to add support for zksolc
version 1.5.7
? I will close this issue as it's not a bug on the plugin side.
Ah one question: As you can see, there was also the error:
ZkSyncBlockExplorer:
Failed to send contract verification request
Reason: ZkSyncVerifyPluginError: Deployed bytecode is not equal to generated one from given source
Have you also tested it on the ZKsync explorer? I guess it's also a version issue?
Yeah, it seems that the issue was related to the compiler version. It’s working now, and we successfully verified the contract with the new version. https://sepolia.explorer.zksync.io/address/0xaf941b089B396E64cE506B7200328102FC08a85D#contract
Summary
I upgraded the dependency
@matterlabs/hardhat-zksync-verify
to the latest version1.7.0
in my template repository: https://github.com/pcaversaccio/hardhat-project-template-ts/commit/d3a86672c94f895e071879d762d32c10f808442d.I wanted to test the verification, but it consistently fails. The full log: