Skip to content

Instantly share code, notes, and snippets.

@MASDXI
Last active August 2, 2021 10:47
Show Gist options
  • Save MASDXI/bf36390da0f270602033dba0ff6596d7 to your computer and use it in GitHub Desktop.
Save MASDXI/bf36390da0f270602033dba0ff6596d7 to your computer and use it in GitHub Desktop.
ERC20.sol Remix IDE
// 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