Skip to content

Commit

Permalink
Change order of ERC20 methods and call in transferData and transferDa…
Browse files Browse the repository at this point in the history
…taFrom
  • Loading branch information
AugustoL committed Jan 11, 2018
1 parent f36f8e9 commit 4ecdf31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/token/ERC827.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ contract ERC827 is StandardToken {
function transferData(address _to, uint256 _value, bytes _data) public returns (bool) {
require(_to != address(this));

require(_to.call(_data));

super.transfer(_to, _value);

require(_to.call(_data));
return true;
}

Expand All @@ -72,9 +72,9 @@ contract ERC827 is StandardToken {
function transferDataFrom(address _from, address _to, uint256 _value, bytes _data) public returns (bool) {
require(_to != address(this));

require(_to.call(_data));

super.transferFrom(_from, _to, _value);

require(_to.call(_data));
return true;
}

Expand Down

0 comments on commit 4ecdf31

Please sign in to comment.