fix ERC20 to conform to standard

This commit is contained in:
Francisco Giordano
2017-07-13 12:05:45 -03:00
parent f8790c1ed7
commit 6331dd125d
6 changed files with 18 additions and 15 deletions

View File

@ -19,10 +19,11 @@ contract BasicToken is ERC20Basic {
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) {
function transfer(address _to, uint256 _value) returns (bool) {
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
/**