* Simplification and optimization of existing contracts #8888 * Simplification of SimpleToken * This is the fixed Simplification * My bad I'm playing around with this git stuff, should be correct now * add missing parenthesis
21 lines
608 B
Solidity
21 lines
608 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "../token/ERC20/ERC20.sol";
|
|
import "../token/ERC20/ERC20Detailed.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 {
|
|
|
|
/**
|
|
* @dev Constructor that gives msg.sender all of existing tokens.
|
|
*/
|
|
constructor () public ERC20Detailed("SimpleToken", "SIM", 18) {
|
|
_mint(msg.sender, 10000 * (10 ** uint256(decimals())));
|
|
}
|
|
}
|