Fail to verify AdminUpgradeabilityProxy on BSC

after tried methods at

still fail to verify the contract.

my contract info:

I’ve verified the proxy and the proxy admin.


Thanks, can you share how you do the verification?
I spent several hours trying to verify but failed :rofl:

Sorry, I am not familiar with the BSC-Chain, maybe you should ask for help in their forum: Home | Binance Chain Forum

And they have a documentation about how to verify contracts, maybe you can have a look at it:

thanks for your reply

BSC-chain is (almost) exactly the same as ETH, and I think my verification problem has little to do with the difference of the chains, I guess several things lead to my failure:

  1. I don’t know how to find the corresponding code of AdminUpgradeabilityProxy and ProxyAdmin to different versions of @openzeppelin/hardhat-upgrades, I tried the master code of the openzeppelin-upgrades repo and the latest version of @openzeppelin/hardhat-upgrades(1.7.0), but still failed.
  2. I don’t know how&where to get the Constructor Arguments for the AdminUpgradeabilityProxy.

It would really help if the verification process can be documented more clearly, thanks.

Recently, I use the hardhat to verify contracts, maybe you can have a look at their tutorial:

I followed this guide: Verifying an OpenZeppelin proxy contract on etherscan - #2 by frangio and used hardhat to do the verification and failed

do you know how to

  1. locate the version of AdminUpgradeabilityProxy and ProxyAdmin code to different versions of @openzeppelin/hardhat-upgrades?
  2. get the Constructor Arguments for the AdminUpgradeabilityProxy?

@SE_RIYANTO The contract seems verified now.