make StandardToken state variables private

This commit is contained in:
Francisco Giordano
2018-08-12 13:16:28 -03:00
parent ac91af9a6a
commit cb75f007ea
9 changed files with 31 additions and 30 deletions

View File

@ -22,9 +22,7 @@ contract SimpleToken is StandardToken {
* @dev Constructor that gives msg.sender all of existing tokens.
*/
constructor() public {
totalSupply_ = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_SUPPLY;
emit Transfer(address(0), msg.sender, INITIAL_SUPPLY);
_mint(msg.sender, INITIAL_SUPPLY);
}
}