# Use Truffle Flattener on Windows with OpenZeppelin Contracts 2.x

**URL:** <https://forum.openzeppelin.com/t/use-truffle-flattener-on-windows-with-openzeppelin-contracts-2-x/4178>\
**Category:** Contracts\
**Created:** [October 17, 2020, 9:50pm UTC](https://forum.openzeppelin.com/t/use-truffle-flattener-on-windows-with-openzeppelin-contracts-2-x/4178 "2020-10-17T21:50:36Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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 25, 2020, 9:43pm UTC](https://forum.openzeppelin.com/t/use-truffle-flattener-on-windows-with-openzeppelin-contracts-2-x/4178/12 "2020-10-25T21:43:42Z")

</div>

Hi @marslan,

I verified the contract on mainnet

> **[Contract Address 0x86dA5D7345B4257b3f340265C8764e28603113fC | Etherscan](https://etherscan.io/address/0x86dA5D7345B4257b3f340265C8764e28603113fC#code)**
>
> The Contract Address 0x86dA5D7345B4257b3f340265C8764e28603113fC page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

I converted your contract to use package imports:

```auto
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";

contract Myteamcoin is ERC20, ERC20Detailed {

    constructor () public ERC20Detailed("Myteamcoin", "MYC", 18) {
        _mint(msg.sender, 25000000000 * (10 ** uint256(decimals())));
    }
}

```

I checked the bytecode on Etherscan and the contract was compiled with Solidity 0.5.16, so I set the compiler version to that.

There were no constructor parameters.

I used the following method to verify: [Verify smart contract inheriting from OpenZeppelin Contracts](https://forum.openzeppelin.com/t/verify-smart-contract-inheriting-from-openzeppelin-contracts/4119)

The verify command was run as follows:

```auto
$ npx buidler verify --network mainnet 0x86dA5D7345B4257b3f340265C8764e28603113fC
Compiling...
Downloading compiler version 0.5.16
Successfully submitted source code for contract
contracts/Myteamcoin.sol:Myteamcoin at 0x86dA5D7345B4257b3f340265C8764e28603113fC
for verification on etherscan. Waiting for verification result...
Successfully verified contract on etherscan

```

---

_[View the full topic](https://forum.openzeppelin.com/t/use-truffle-flattener-on-windows-with-openzeppelin-contracts-2-x/4178)._
