Verifying an OpenZeppelin proxy contract on etherscan

Hi @sean,

It's interesting that you want to verify manually. We were working under the assumption that the automatic verification based on similar contracts was good enough. (Are you sure that verifying manually will remove the "similar match" link?)

I can verify the contract for you if you want (feel free to send the contract address over DM if you prefer).

If you would like to do it yourself, you can follow the same steps I would follow:

  1. Clone the openzeppelin-upgrades repository
  2. Install dependencies running npx yarn.
  3. Go in the directory packages/core and run:

yarn hardhat verify --network mainnet <proxy address> <implementation address> <admin address> <initializer data>

We are looking into ways of making this process simpler for users.

3 Likes