Use Truffle Flattener on Windows with OpenZeppelin Contracts 2.x

Hi @marslan,

I verified the contract on mainnet

I converted your contract to use package imports:

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

The verify command was run as follows:

$ 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
1 Like