How to verify upgradable contract on ropsten in etherscan?

#1

Hello everyone,

I managed to create an upgradable contract and deploy it to ropsten with zos. I’m now trying to verify it manually on etherscan, I’m using truffle-flattener to generate a flatten version of the contract but when I try to verify it etherscan says:

Sorry! The Compiled Contract ByteCode for ' **Gateway** ' does  **NOT**  match the Contract Creation Code for Address [0x9afb3cec8889cac85110f5732e0d9d22eeb4889d](https://ropsten.etherscan.io/address/0x9afb3cec8889cac85110f5732e0d9d22eeb4889d).
 Found the following ContractName(s) in source code: DexI, Gateway, GlobalVar, IERC20, Initializable, Ownable. 

Unable to Verify Contract Source Code.

What am I missing?

0 Likes

#2

hi @Alexintosh welcome to the community :slight_smile: I am tagging @frangio to check this for you. In the meantime would like to hear more about you on this thread.
https://forum.zeppelin.solutions/t/introduce-yourself-here/88/116
Please do drop by to say hi :slight_smile:

1 Like

#3

Hey @Alexintosh! Have you tried directly with the zos verify command? It will ask you for an etherscan API key to run the verification, but it should handle everything automatically (flattenning included) for you. The only caveat is that it does not support external solidity libraries at the moment, but if that is not your case, give it a shot!

0 Likes

#4

Yeah I tried with zos verify --network ropsten --api-key <KEY> <NAME Contract> but I get:
Invalid network. Currently, etherchain supports only mainnet

0 Likes

#5

Make sure to add --remote etherscan, otherwise zos verify defaults to etherchain instead of etherscan.

0 Likes

#6

@Alexintosh any luck? :slight_smile:

0 Likes