# SPDX verification issue with OpenZeppelin CLI

**URL:** <https://forum.openzeppelin.com/t/spdx-verification-issue-with-openzeppelin-cli/3798>\
**Category:** SDK\
**Created:** [September 13, 2020, 12:51pm UTC](https://forum.openzeppelin.com/t/spdx-verification-issue-with-openzeppelin-cli/3798 "2020-09-13T12:51:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirpy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/sirpy/32/3021_2.png) [@sirpy](https://forum.openzeppelin.com/u/sirpy)\
**Post date:** [September 13, 2020, 12:51pm UTC](https://forum.openzeppelin.com/t/spdx-verification-issue-with-openzeppelin-cli/3798/1 "2020-09-13T12:51:57Z")

</div>

I’m trying to verify an upgrade contract with oz verify (on ropsten etherscan) with version 2.8.2  
It fails with an error unable to verify  
When I tried to verify the implementation contract manually etherscan reported on “multiple spdx”  
after i’ve removed the SPDX from my own contract code manual verification passed  
i’m guessing your verify flattener code should take that into consideration

---

<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:** [September 14, 2020, 5:32am UTC](https://forum.openzeppelin.com/t/spdx-verification-issue-with-openzeppelin-cli/3798/2 "2020-09-14T05:32:29Z")

</div>

Hi @sirpy,

Welcome to the community 👋.

I am sorry that you had this issue. With the introduction of SPDX Licence identifiers I recommend not flattening files for verification. Instead we should verify our contracts as multifile contracts. Otherwise we run the risk of removing licenses from contracts as part of the flattening process.

The easiest way to do this currently is with the Buidler Etherscan plugin:

> **[nomiclabs/buidler](https://github.com/nomiclabs/buidler/tree/development/packages/buidler-etherscan)**
>
> Buidler is an Ethereum development environment. Compile your contracts and run them on a development network. Get Solidity stack traces & console.log. - nomiclabs/buidler

* * *

As an aside, if you are deploying upgradeable contracts, you may want to look at the OpenZeppelin Upgrades Plugins that we recently released for Truffle and Buidler. These allow you to easily deploy upgradeable contracts with either Truffle or Buidler. [https://docs.openzeppelin.com/upgrades-plugins/1.x/](https://docs.openzeppelin.com/upgrades-plugins/1.x/)

---

<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:** [September 21, 2020, 12:48am UTC](https://forum.openzeppelin.com/t/spdx-verification-issue-with-openzeppelin-cli/3798/3 "2020-09-21T00:48:13Z")

</div>

Hi @sirpy,

Were you able to verify the contract? Let me know if you run into issues.

---

<div class="post-metadata">

**Author:** ![sirpy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/sirpy/32/3021_2.png) [@sirpy](https://forum.openzeppelin.com/u/sirpy)\
**Post date:** [October 11, 2020, 8:46pm UTC](https://forum.openzeppelin.com/t/spdx-verification-issue-with-openzeppelin-cli/3798/4 "2020-10-11T20:46:20Z")

</div>

Hey. Didnt try it with buidler.  
i’ve just started to try working with the truffle plugin again, there seems to be discreprencies between the plugin and oz. the network .json wasnt created correctly with truffle also in truffle plugin it sets “admin” in json while in oz it sets “proxyAdmin” in the network json

---

<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:** [October 11, 2020, 11:00pm UTC](https://forum.openzeppelin.com/t/spdx-verification-issue-with-openzeppelin-cli/3798/5 "2020-10-11T23:00:00Z")

</div>

Hi @sirpy,

I recommend verifying with the Buidler Etherscan plugin as you get multifile verification.

Multifile verification is coming to Truffle: [https://github.com/rkalis/truffle-plugin-verify/issues/37](https://github.com/rkalis/truffle-plugin-verify/issues/37)
