OpenZeppelin / openzeppelin-labs

A space for the community to interact and exchange ideas on the OpenZeppelin platform. Do not use in production!
https://openzeppelin.com/
MIT License
376 stars 116 forks source link

Verifing upgradable proxy contract on etherscan #135

Closed olegts239 closed 5 years ago

olegts239 commented 5 years ago

Good day! Sorry for stupid question. I use Inherited Storage proxy pattern so my contracts on etherscan are: Registry (code verified) - https://etherscan.io/address/0x4738fe76611ea375375904fe4e996ff1f5666d95 Upgradable contract version 1.0 (code verified) - https://etherscan.io/address/0xb518712634b917e036e2f1ead30fd6eae921bfd5 UpgradableProxy (code NOT verified) - https://etherscan.io/address/0x17b38d3779debcf1079506522e10284d3c6b0fef Tx that created UpgradableProxy - https://etherscan.io/tx/0x3bf0bd7fe4f7700eeac4d2f3918d62985acf15d4f3eed9c2efd153b1a77d6706

How can I verify my last UpgradableProxy contract? Is it possible (because based on this topic https://ethereum.stackexchange.com/questions/27991/how-do-you-verify-a-contract-on-etherscan-that-is-deployed-by-another-contract?rq=1 I can't verify contract created from another contract)?

I tried to verify UpgradableProxy with/without args and optimization on/off but none of them helps

olegts239 commented 5 years ago

I successfully verified proxy contract: https://etherscan.io/address/0x17b38d3779debcf1079506522e10284d3c6b0fef#code

It worked for me when I turned off optimization