ERC20 totalSupply changed from public property to a function (#666)

Fixes OpenZeppelin/zeppelin-solidity#434
This commit is contained in:
Santiago Palladino
2018-01-19 17:15:27 -03:00
committed by Francisco Giordano
parent 9cc55ef2a5
commit 370e6a882a
12 changed files with 27 additions and 10 deletions

View File

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