How to verify contracts created using ClonesUpgradeable.cloneDeterministic?

I am trying to deterministically clone previously deployed ERC20 contracts using cloneDeterministic How can I verify the contracts cloned on Etherscan? Does Zeppelin has a proxy contract which whose bytecode will match here. I can use hardhat verification if I get the contract.

:computer: Environment

:memo:Details

:1234: Code to reproduce

As far as I know Clones cannot be verified on Etherscan, the assembly code was written manually for EIP-1167.

1 Like

@frangio is right in that there is no actual source code you could verify. The bytecode was written directly.

However, etherscan DOES recognize the minimal proxy, and will display them correctly if the underlying instance is verified

Example: https://etherscan.io/address/0x1bdafafbcef2d288bb4392650ae743b16cc96ce1#code

2 Likes

Yes, if we verify the implementation contract, Etherscan picks up proxy code automatically. thank you guys!

1 Like