Browse Source

Merge pull request #440 from spalladino/fix/simple_token_initial_supply

Fix INITIAL_SUPPLY in SimpleToken example
Francisco Giordano 8 years ago
parent
commit
eda63c75c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contracts/examples/SimpleToken.sol

+ 1 - 1
contracts/examples/SimpleToken.sol

@@ -16,7 +16,7 @@ contract SimpleToken is StandardToken {
   string public constant symbol = "SIM";
   uint8 public constant decimals = 18;
 
-  uint256 public constant INITIAL_SUPPLY = 10000;
+  uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256(decimals));
 
   /**
    * @dev Contructor that gives msg.sender all of existing tokens.