Skip to content

Instantly share code, notes, and snippets.

@mrdarkside
Created October 5, 2020 13:31
Show Gist options
  • Save mrdarkside/55671050c20a10579e2950845701c0cd to your computer and use it in GitHub Desktop.
Save mrdarkside/55671050c20a10579e2950845701c0cd to your computer and use it in GitHub Desktop.

Revisions

  1. mrdarkside created this gist Oct 5, 2020.
    10 changes: 10 additions & 0 deletions token2.sol
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    pragma solidity ^0.6.2;

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

    contract Token is ERC20 {

    constructor () public ERC20("Token", "TKN") {
    _mint(msg.sender, 1000000 * (10 ** uint256(decimals())));
    }
    }