Created
June 24, 2019 01:20
-
-
Save yhuag/1dda2a215a9bc5168b3cafbaaace177d to your computer and use it in GitHub Desktop.
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
pragma solidity ^0.5.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; | |
/** | |
* @title SimpleToken | |
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. | |
* Note they can later distribute these tokens as they wish using `transfer` and other | |
* `ERC20` functions. | |
*/ | |
contract SimpleToken is ERC20, ERC20Detailed { | |
uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** 18); | |
/** | |
* @dev Constructor that gives msg.sender all of existing tokens. | |
*/ | |
constructor() public ERC20Detailed("JeffToken", "JEFF", 18) { | |
_mint(msg.sender, INITIAL_SUPPLY); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment