[Contract Verification] Unable to verify Ethena USDe contracts #880
-
Team or ProjectEthena EnvironmentMainnet Block ExplorerIssue Type
Contract Address0x39Fe7a0DACcE31Bd90418e3e659fb0b5f0B3Db0d Compiler TypeMulti-part contract zkSolc Version1.5.0 Solc Version0.8.22 Contract NameUSDeOFT Contract CodeContract is verified on https://explorer.zksync.io/ https://explorer.zksync.io/address/0x39Fe7a0DACcE31Bd90418e3e659fb0b5f0B3Db0d#contract Constructor Arguments
Hardhat Verify Plugin Version1.7.1 Repo Link (Optional)repo is private Additional DetailsWe have successfully verified our contracts on https://explorer.zksync.io/ using the hardhat plugin. We have followed this documentation for We have attempted to verify our contracts on https://era.zksync.network/ with the same hardhat plugin and the same arguments except for a change to the verifying URL to point to the relevant explorer. The output from the hardhat-zksync-verify plugin is as follows:
our hardhat config includes the following in the networks section:
our hardhat config also contains the following in etherscan.apiKey:
our compiler versions are defined like this:
we are using the following command:
We have also attempted to use
However, we notice there is no option to specify the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @iethena, PS: You don’t need to change verifyURL to 'https://api-era.zksync.network/api' since it doesn’t have any effect. This URL is only for ZKSync block explorer verification and not for Etherscan. |
Beta Was this translation helpful? Give feedback.
Hello @iethena,
Based on the message you received, it seems that your bytecode has changed locally and no longer matches the bytecode on the chain, which is why the plugin is throwing this validation error. Several factors could cause this, so make sure you're using the same setup and configurations as when you deployed the contract.
PS: You don’t need to change verifyURL to 'https://api-era.zksync.network/api' since it doesn’t have any effect. This URL is only for ZKSync block explorer verification and not for Etherscan.