-
Notifications
You must be signed in to change notification settings - Fork 199
Different from #1183 npx oz verify` Error while trying to verify contract: Fail - Unable to verify #1556
Comments
Hi @EndOfMaster ! I’m sorry that you had this issue. We would need more information so that we can reproduce it. Can you provide the Solidity and EVM versions you are using and a link to your contract or repository? I also noticed that you included an Etherscan API key in the text of the issue. I recommend disabling this API key to prevent any misuse. |
Hi @abcoathup . truffle-config.js// Configure your compilers
compilers: {
solc: {
version: "0.6.8", // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "byzantium"
}
}
} |
Hi @EndOfMaster , We have been able to reproduce this issue by following these steps: Using the Box.sol contract Compile with solc 0.6.8 and target EVM istanbul
Deploy to a public testnet
Verify on Etherscan fails
The project owner will review and triage this issue as soon as they can. In the meantime, you can try the following workaround: You are currently using the non-default EVM version of My understanding is that the EVM version wasn't originally part of the Etherscan API. If you can recompile using
Another potential issue is if there is a mix of SPDX license identifiers: https://forum.openzeppelin.com/t/solidity-0-6-8-introduces-spdx-license-identifiers/2859 |
Hi @abcoathup ,I modified the evmVersion , but it doesn't work. It's the same mistake. project.json{
"manifestVersion": "2.2",
"contracts": {
"Agic": "Agic"
},
"dependencies": {},
"name": "Agic",
"version": "1.0.0",
"compiler": {
"compilerSettings": {
"evmVersion": "istanbul",
"optimizer": {
"enabled": false,
"runs": "200"
}
},
"typechain": {
"enabled": false
},
"manager": "openzeppelin",
"solcVersion": "0.6.8",
"artifactsDir": "build/contracts",
"contractsDir": "contracts"
},
"telemetryOptIn": true
} about SPDX, all the files I import have |
I had two MIT SPDX |
Unable to verify using OpenZeppelin SDK.
npx oz verify
results in the following error:Error while trying to verify contract: Fail - Unable to verify
OpenZeppelin CLI Version 2.5.2
Verify to Etherscan on Ropsten
ropsten.json
project.json
The text was updated successfully, but these errors were encountered: