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


:1234: Code to reproduce

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

@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


1 Like

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