# Verify contract deployed using Remix inheriting from OpenZeppelin

**URL:** <https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929>\
**Category:** Contracts\
**Created:** [December 4, 2020, 10:51am UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929 "2020-12-04T10:51:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![senavi](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@senavi](https://forum.openzeppelin.com/u/senavi)\
**Post date:** [December 4, 2020, 10:51am UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929/1 "2020-12-04T10:51:17Z")

</div>

Hi @abcoathup i deployed the contract using Remix , its an openzeppelin inherited contract, How can i verify it?

---

<div class="post-metadata">

**Author:** ![senavi](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@senavi](https://forum.openzeppelin.com/u/senavi)\
**Post date:** [December 5, 2020, 10:19am UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929/2 "2020-12-05T10:19:29Z")

</div>

@abcoathup Could you please help? i was not able to verify the contract after deploying it from remix  
i flattened the contract using truffle flattener and pasted the flattened code in remix and it compiled and deployed successfully, but getting error while verifying

---

<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:** [December 6, 2020, 2:33am UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929/3 "2020-12-06T02:33:27Z")

</div>

@senavi Hey, could you please show your code, so we can have a look what is wrong with it?

---

<div class="post-metadata">

**Author:** ![senavi](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@senavi](https://forum.openzeppelin.com/u/senavi)\
**Post date:** [December 6, 2020, 1:44pm UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929/4 "2020-12-06T13:44:02Z")

</div>

Hey @Skyge i was able to verify once i select optimization as No

---

<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:** [December 6, 2020, 2:02pm UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929/5 "2020-12-06T14:02:38Z")

</div>

It depends on how do you deploy your contracts.

---

<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:** [December 6, 2020, 11:14pm UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929/6 "2020-12-06T23:14:48Z")

</div>

Hi @senavi,

Welcome to the community 👋

Glad you were able to verify. (Thanks as always @Skyge 🙏)

The current best way to verify is as follows: [Verifying a contract inheriting from OpenZeppelin Contracts](https://forum.openzeppelin.com/t/verifying-a-contract-inheriting-from-openzeppelin-contracts/1119)

---

<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:** [December 11, 2020, 12:44am UTC](https://forum.openzeppelin.com/t/verify-contract-deployed-using-remix-inheriting-from-openzeppelin/4929/7 "2020-12-11T00:44:20Z")

</div>

A post was split to a new topic: [How to set MINT\_ROLE in a grantRole function of accesscontrol](https://forum.openzeppelin.com/t/how-to-set-mint-role-in-a-grantrole-function-of-accesscontrol/5005)
