File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
pragma solidity ^ 0.4.24 ;
2
2
3
3
import "../token/ERC20/ERC20.sol " ;
4
+ import "../token/ERC20/ERC20Detailed.sol " ;
4
5
5
6
/**
6
7
* @title SimpleToken
7
8
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
8
9
* Note they can later distribute these tokens as they wish using `transfer` and other
9
10
* `ERC20` functions.
10
11
*/
11
- contract SimpleToken is ERC20 {
12
+ contract SimpleToken is ERC20 , ERC20Detailed {
12
13
13
- string public constant name = "SimpleToken " ;
14
- string public constant symbol = "SIM " ;
15
- uint8 public constant decimals = 18 ;
16
-
17
- uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256 (decimals));
14
+ uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256 (decimals ()));
18
15
19
16
/**
20
17
* @dev Constructor that gives msg.sender all of existing tokens.
21
18
*/
22
- constructor () public {
19
+ constructor () public ERC20Detailed ( " SimpleToken " , " SIM " , 18 ) {
23
20
_mint (msg .sender , INITIAL_SUPPLY);
24
21
}
25
22
You can’t perform that action at this time.
0 commit comments