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

@ -14,6 +14,15 @@ contract BasicToken is ERC20Basic {
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.