cjmling / findings

Notes on stuff i finds worth keeping for quick reference later on.
2 stars 0 forks source link

omiclabs/hardhat-etherscan: More than one contract was found to match the deployed bytecode. #332

Open cjmling opened 2 years ago

cjmling commented 2 years ago

If we see this error when verify then we have to pass the --contract option

hardhat verify "<address>" --network rinkeby --contract contracts/<FileName>.sol:<ContractName> <other args>

Example : hardhat verify "<address>" --network rinkeby --contract contracts/Example.sol:ExampleContract <other args>

Error in plugin @nomiclabs/hardhat-etherscan: More than one contract was found to match the deployed bytecode.