Skip to content

Commit b50894a

Browse files
authored
Merge pull request #405 from androolloyd/fix/396-make-decimals-uint8-in-token-example
changed decimal to be uint8 so that it matches the ERC20 specification.
2 parents d6f0726 + 1827cbf commit b50894a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/examples/SimpleToken.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ import "../token/StandardToken.sol";
66

77
/**
88
* @title SimpleToken
9-
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
9+
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
1010
* Note they can later distribute these tokens as they wish using `transfer` and other
1111
* `StandardToken` functions.
1212
*/
1313
contract SimpleToken is StandardToken {
1414

1515
string public constant name = "SimpleToken";
1616
string public constant symbol = "SIM";
17-
uint256 public constant decimals = 18;
17+
uint8 public constant decimals = 18;
1818

1919
uint256 public constant INITIAL_SUPPLY = 10000;
2020

2121
/**
22-
* @dev Contructor that gives msg.sender all of existing tokens.
22+
* @dev Contructor that gives msg.sender all of existing tokens.
2323
*/
2424
function SimpleToken() {
2525
totalSupply = INITIAL_SUPPLY;

0 commit comments

Comments
 (0)