From 1f058ea92c500a52313ffa9df4d9a7055ab3c05d Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 2 May 2017 14:33:54 +0200 Subject: Revert changes to standard token. --- std/StandardToken.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/StandardToken.sol') diff --git a/std/StandardToken.sol b/std/StandardToken.sol index e5f7e577..51f925e0 100644 --- a/std/StandardToken.sol +++ b/std/StandardToken.sol @@ -22,7 +22,7 @@ contract StandardToken is Token { } function transfer(address _to, uint256 _value) returns (bool success) { - success = doTransfer(msg.sender, _to, _value); + return doTransfer(msg.sender, _to, _value); } function transferFrom(address _from, address _to, uint256 _value) returns (bool) { @@ -36,7 +36,7 @@ contract StandardToken is Token { } } - function doTransfer(address _from, address _to, uint _value) internal returns (bool) { + function doTransfer(address _from, address _to, uint _value) internal returns (bool success) { if (balance[_from] >= _value && balance[_to] + _value >= balance[_to]) { balance[_from] -= _value; balance[_to] += _value; @@ -47,7 +47,7 @@ contract StandardToken is Token { } } - function approve(address _spender, uint256 _value) returns (bool) { + function approve(address _spender, uint256 _value) returns (bool success) { m_allowance[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; -- cgit