Last active
August 2, 2021 10:47
-
-
Save MASDXI/bf36390da0f270602033dba0ff6596d7 to your computer and use it in GitHub Desktop.
ERC20.sol Remix IDE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.7.0 <0.9.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
contract Token is ERC20 { | |
// name Token | |
// symbol TKN | |
// decimals 18 (default) | |
// totalSupply 1000000 | |
constructor () ERC20("Token", "TKN") { | |
_mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment