aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-02 20:33:54 +0800
committerchriseth <chris@ethereum.org>2017-05-03 17:26:21 +0800
commit1f058ea92c500a52313ffa9df4d9a7055ab3c05d (patch)
tree7df7c8c71458e3f5898786ab2bb6981fcaf52c1b
parente0266b79f3709eb6314e883938bb969ba106beaa (diff)
downloaddexon-solidity-1f058ea92c500a52313ffa9df4d9a7055ab3c05d.tar.gz
dexon-solidity-1f058ea92c500a52313ffa9df4d9a7055ab3c05d.tar.zst
dexon-solidity-1f058ea92c500a52313ffa9df4d9a7055ab3c05d.zip
Revert changes to standard token.
-rw-r--r--std/StandardToken.sol6
1 files changed, 3 insertions, 3 deletions
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;