# Verifying AdminUpgradeabilityProxy

**URL:** <https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032>\
**Category:** Upgrades\
**Created:** [April 15, 2021, 6:07pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032 "2021-04-15T18:07:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/elen/32/5105_2.png) [@Elen](https://forum.openzeppelin.com/u/Elen)\
**Post date:** [April 15, 2021, 6:07pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/1 "2021-04-15T18:07:03Z")

</div>

Hello  
after deploying my proxy contract, how I can verify it?

‘AdminUpgradeabilityProxy’  
[Contract Address 0x5Dff9DBa100D260Abaa5d11DB1f3E32E55a7a0Aa | Etherscan](https://ropsten.etherscan.io/address/0x5Dff9DBa100D260Abaa5d11DB1f3E32E55a7a0Aa#code)

Truffle v5.3.0 (core: 5.3.0)  
Solidity - ^0.6.12 (solc-js)

---

<div class="post-metadata">

**Author:** ![Yoshiko](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/yoshiko/32/6858_2.png) [@Yoshiko](https://forum.openzeppelin.com/u/Yoshiko)\
**Post date:** [April 16, 2021, 7:55am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/2 "2021-04-16T07:55:56Z")

</div>

HI @Elen welcome to the forums.

As you are using Truffle, you should try to use the plugin to help you speed along your verification. Follow the guide below.

> **[Automatically verify Truffle smart contracts on Etherscan](https://kalis.me/verify-truffle-smart-contracts-etherscan/)**
>
> Etherscan is the most popular explorer in the Ethereum space. And one of its big features is verifying the source code of smart contracts. Verification allows users of smart contracts to understand what a contract is doing before using it. This...

If this does not work you can manually verify it via Etherscan. From the link you posted, click “Verify and Publish”. It will ask you to upload the solidity contracts (.sol files), and ask you to verify the compiler version and optimization parameters.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [April 16, 2021, 9:33am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/3 "2021-04-16T09:33:06Z")

</div>

Hi @Elen,

What version of OpenZeppelin Upgrades Plugins did you use? For most public networks the proxy is already verified.

---

<div class="post-metadata">

**Author:** ![Elen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/elen/32/5105_2.png) [@Elen](https://forum.openzeppelin.com/u/Elen)\
**Post date:** [April 16, 2021, 11:12am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/4 "2021-04-16T11:12:01Z")

</div>

Hello ,  
@Yoshiko the plugin doesn’t generate .sol files …  
@abcoathup how I can retrieve the version of the plugin?  
thank you for your answers

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [April 16, 2021, 11:30am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/5 "2021-04-16T11:30:00Z")

</div>

Hi @Elen,

If you look in package.json for the version.

---

<div class="post-metadata">

**Author:** ![Elen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/elen/32/5105_2.png) [@Elen](https://forum.openzeppelin.com/u/Elen)\
**Post date:** [April 16, 2021, 11:35am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/6 "2021-04-16T11:35:14Z")

</div>

looks like version 1.6.0

 ![image](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/7/721967a6faa82bca1cbba601755d87200dbf1734.png)

---

<div class="post-metadata">

**Author:** ![Elen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/elen/32/5105_2.png) [@Elen](https://forum.openzeppelin.com/u/Elen)\
**Post date:** [April 16, 2021, 3:54pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/7 "2021-04-16T15:54:19Z")

</div>

I had a very small mistake on my implementation contract , i redeployed the contracts :

## Deploying 'AdminUpgradeabilityProxy'

> transaction hash: 0x72993c9e8000a759ddc1f3eb179ba371f038e68eb015d1428ae10a8c2601f3c4  
> Blocks: 3 Seconds: 8  
> contract address: 0x80575A01f074C18466C2e889C4685fd8594d4b54  
> block number: 10051398  
> block timestamp: 1618586983  
> account: 0xd7c90Aea6945432B39028b1E62B9F76F7b151a0D

---

<div class="post-metadata">

**Author:** ![swkim109](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/swkim109/32/5097_2.png) [@swkim109](https://forum.openzeppelin.com/u/swkim109)\
**Post date:** [April 17, 2021, 10:37pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/8 "2021-04-17T22:37:48Z")

</div>

I have same problem in Upgrades Hardhat plugin.  
After deploying by `upgrades.deployProxy` to Rinkeby, should I verify the `AdminUpgradeabilityProxy` contract manually? As far as I know, Etherscan automatically detects delegeteCall opcode, then enables `Is this a proxy?` option. But it does not detect it is a proxy contract.

```auto
"devDependencies": {
    "@nomiclabs/hardhat-ethers": "^2.0.2",
    "@nomiclabs/hardhat-etherscan": "^2.1.1",
    "@nomiclabs/hardhat-waffle": "^2.0.1",
    "@openzeppelin/hardhat-upgrades": "^1.6.0",
    "chai": "^4.3.4",
    "ethereum-waffle": "^3.3.0",
    "ethers": "^5.1.0",
    "hardhat": "^2.2.0"
}

```

Here is my proxy contract on Rinkeby:  
[https://rinkeby.etherscan.io/address/0x1E0F50Bc8D8570ffa94485bbB17b3b50676ae246#code](https://rinkeby.etherscan.io/address/0x1E0F50Bc8D8570ffa94485bbB17b3b50676ae246#code)

And Etherscan Proxy contract support:  
[https://medium.com/etherscan-blog/and-finally-proxy-contract-support-on-etherscan-693e3da0714b](https://medium.com/etherscan-blog/and-finally-proxy-contract-support-on-etherscan-693e3da0714b)

---

<div class="post-metadata">

**Author:** ![swkim109](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/swkim109/32/5097_2.png) [@swkim109](https://forum.openzeppelin.com/u/swkim109)\
**Post date:** [April 18, 2021, 1:40am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/9 "2021-04-18T01:40:26Z")

</div>

I found something.  
I changed `@openzeppelin/upgrades-core` from `1.6.0` (recently installed) to `1.5.1` in `yarn.lock`  
It works! 🤩 Here is my proxy contract:  
[https://rinkeby.etherscan.io/address/0x91D66291EE643162f2e00A532181d5EcBBc9bCf9#code](https://rinkeby.etherscan.io/address/0x91D66291EE643162f2e00A532181d5EcBBc9bCf9#code)

And in yarn.lock, I replaced the whole dependency with this

```auto
"@openzeppelin/upgrades-core@^1.5.0":
  version "1.5.1"
  resolved "https://registry.yarnpkg.com/@openzeppelin/upgrades-core/-/upgrades-core-1.5.1.tgz#2165f0c2961cc748e7d1c2bce1ba96589d31390b"
  integrity sha512-rL0h/+Yfcky98XaxLRcxKunmC2uVP+dr9tVxzZfbjDpIco7VkmyODsI1YBPZTn3e5kCj7A6cmgNrFmao/UkQyA==
  dependencies:
    bn.js "^5.1.2"
    cbor "^7.0.0"
    chalk "^4.1.0"
    compare-versions "^3.6.0"
    debug "^4.1.1"
    ethereumjs-util "^7.0.3"
    fp-ts "^2.7.1"
    io-ts "^2.2.9"
    proper-lockfile "^4.1.1"
    solidity-ast "^0.4.15"

```

Don’t forget `yarn install` and `npx hardhat clean` after modifying `yarn.lock`.

---

<div class="post-metadata">

**Author:** ![swkim109](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/swkim109/32/5097_2.png) [@swkim109](https://forum.openzeppelin.com/u/swkim109)\
**Post date:** [April 18, 2021, 1:23pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/10 "2021-04-18T13:23:20Z")

</div>

👆Of course, this is not the solution. I think there will be some update from OZ or Etherscan team.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [April 19, 2021, 5:34am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/11 "2021-04-19T05:34:03Z")

</div>

Hi @swkim109,

We need to verify the contracts in 1.6.0, other versions such as 1.5.1 have already been verified.

---

<div class="post-metadata">

**Author:** ![swkim109](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/swkim109/32/5097_2.png) [@swkim109](https://forum.openzeppelin.com/u/swkim109)\
**Post date:** [April 19, 2021, 5:45am UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/12 "2021-04-19T05:45:08Z")

</div>

Thanks for clarifying! 👍

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [April 20, 2021, 9:12pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/13 "2021-04-20T21:12:26Z")

</div>

The contracts are verified now. Sorry about the inconvenience. Should be automated very soon.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [April 20, 2021, 9:35pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/14 "2021-04-20T21:35:43Z")

</div>

Hi @Elen,

I marked your proxy as a Proxy in Etherscan

---

<div class="post-metadata">

**Author:** ![pwho](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/pwho/32/2995_2.png) [@pwho](https://forum.openzeppelin.com/u/pwho)\
**Post date:** [May 1, 2021, 2:50pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/15 "2021-05-01T14:50:42Z")

</div>

@abcoathup – I’m running into some weird behavior.

I’m using the following:: “@openzeppelin/hardhat-upgrades”: “^1.7.0”, and I would have installed that within the last couple of days, so I’m on the latest.

I was able to deploy to Kovan last night. The proxy contracts verified just fine.  
Now I’m trying another deploy this morning and suddenly the contracts aren’t being verified. The implementation contracts are verified automatically, I’m assuming b/c I verified those manually last night. But the proxy contracts aren’t even recognized as being possible proxies, so I don’t see the etherscan option to flag it as such. Instead, I only see a notice that there are other similar contracts.

So I’m wondering if the bytecode got corrupted somehow? and if so, what are some things I should look for?

I should note that we managed to deploy the same contracts from another project just fine. We’re still trying to find how those two projects are different; nevertheless, for the same project to work one moment, and then to NOT work only several hours later without any code changes is a mystery.

Any thoughts?

Thanks

---

<div class="post-metadata">

**Author:** ![Skyge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/skyge/32/343_2.png) [@Skyge](https://forum.openzeppelin.com/u/Skyge)\
**Post date:** [May 1, 2021, 3:04pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/16 "2021-05-01T15:04:42Z")

</div>

Hi, IIRC, when you deploy contracts with proxy at the first time, there should be three contracts:

- Implementation
- ProxyAdmin
- Proxy

And if you try to deploy again, you will only deploy a `proxy`, as there is only one `ProxyAdmin` per network deployed by your project and the implementation contract has already been deployed.  
For more details, you can have a look at this: _From: [https://docs.openzeppelin.com/upgrades-plugins/1.x/faq#what-is-a-proxy-admin](https://docs.openzeppelin.com/upgrades-plugins/1.x/faq#what-is-a-proxy-admin)_

---

<div class="post-metadata">

**Author:** ![pwho](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/pwho/32/2995_2.png) [@pwho](https://forum.openzeppelin.com/u/pwho)\
**Post date:** [May 1, 2021, 3:16pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/17 "2021-05-01T15:16:00Z")

</div>

Yes, thank you. I was careful to remove all cache, artifacts and the .openzeppelin folder. So I was getting fresh contracts each time.

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [May 3, 2021, 7:32pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/18 "2021-05-03T19:32:49Z")

</div>

Was this on the same network? Can you share the address of the verified and non-verified proxies?

---

<div class="post-metadata">

**Author:** ![pwho](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/pwho/32/2995_2.png) [@pwho](https://forum.openzeppelin.com/u/pwho)\
**Post date:** [May 4, 2021, 12:47pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/19 "2021-05-04T12:47:33Z")

</div>

Same network, yes. Can I send you the addresses via pm?

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [May 4, 2021, 1:36pm UTC](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032/20 "2021-05-04T13:36:30Z")

</div>

Yeah sure you can send via pm.

[Next page](https://forum.openzeppelin.com/t/verifying-adminupgradeabilityproxy/7032.md?page=2)
