From 4ecdf312df10b51636154f5dc4c9c716eba4ff1c Mon Sep 17 00:00:00 2001 From: AugustoL Date: Thu, 11 Jan 2018 13:56:52 -0300 Subject: [PATCH] Change order of ERC20 methods and call in transferData and transferDataFrom --- contracts/token/ERC827.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/token/ERC827.sol b/contracts/token/ERC827.sol index 7729a26a7..c39e9dffe 100644 --- a/contracts/token/ERC827.sol +++ b/contracts/token/ERC827.sol @@ -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; } @@ -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; }