# ERC20 Etherscan Contract Verification Failed

**URL:** <https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355>\
**Category:** Contracts\
**Created:** [August 1, 2021, 7:45am UTC](https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355 "2021-08-01T07:45:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![neoneo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/neoneo/32/7981_2.png) [@neoneo](https://forum.openzeppelin.com/u/neoneo)\
**Post date:** [August 1, 2021, 7:45am UTC](https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355/1 "2021-08-01T07:45:22Z")

</div>

Hello! I'm trying to verify this contract on etherscan and ran into this error. I also tried out flattening the contract with the flatterer plugin in remix but that didn't work either. I would appreciate any help to solve, thank you!

 ![Screenshot from 2021-08-01 03-42-44](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/c/c2c6f47d9396ed9e6463cca452fe59772b143308.png)

---

<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:** [August 1, 2021, 8:11am UTC](https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355/2 "2021-08-01T08:11:40Z")

</div>

Hi, welcome! 👋

If you deployed your contract with Remix, maybe you can have a look at this tutorial: [Verify erc20 token on etherscan that was deployed through remix:step by step guide](https://forum.openzeppelin.com/t/verify-erc20-token-on-etherscan-that-was-deployed-through-remix-step-by-step-guide/9051)

And if you want to verify contracts by multi-files, I think you can look at this tutorial: [Verify smart contract inheriting from OpenZeppelin Contracts](https://forum.openzeppelin.com/t/verify-smart-contract-inheriting-from-openzeppelin-contracts/4119)

---

<div class="post-metadata">

**Author:** ![neoneo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/neoneo/32/7981_2.png) [@neoneo](https://forum.openzeppelin.com/u/neoneo)\
**Post date:** [August 1, 2021, 9:02am UTC](https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355/4 "2021-08-01T09:02:12Z")

</div>

Hi Skyge, Thanks for the reply! I followed your first tutorial and this is what I got. Not really sure where to go from here.

[![](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/4/4691608ae46b458411353e0879b181921ab3f1cc.png) ](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/4/4691608ae46b458411353e0879b181921ab3f1cc.png)

---

<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:** [August 1, 2021, 9:23am UTC](https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355/5 "2021-08-01T09:23:39Z")

</div>

It looks like just some warnings.  
So could you please share the source code and contract address?

---

<div class="post-metadata">

**Author:** ![neoneo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/neoneo/32/7981_2.png) [@neoneo](https://forum.openzeppelin.com/u/neoneo)\
**Post date:** [August 1, 2021, 9:27am UTC](https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355/7 "2021-08-01T09:27:05Z")

</div>

Sure!

Contract Address: 0xdba5910590c4467cc5b28c5bf85f2f7bfa609df7

```auto
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0/contracts/token/ERC20/ERC20.sol";

contract MyToken is ERC20 {
    constructor (string memory name, string memory symbol) public ERC20("Neo", "$NEO") {
        _mint(msg.sender, 100 * 10 ** uint(decimals()));
    }
}

```

---

<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:** [August 2, 2021, 9:58am UTC](https://forum.openzeppelin.com/t/erc20-etherscan-contract-verification-failed/13355/8 "2021-08-02T09:58:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/5/531e74ceb3ce30ed1ee1071bf40e6b786a485de8.png)

This is not the original source code! So it costed my much time.

[Verified!](https://etherscan.io/address/0xdba5910590c4467cc5b28c5bf85f2f7bfa609df7#code)
