Commit 4ecdf312 by AugustoL

Change order of ERC20 methods and call in transferData and transferDataFrom

parent f36f8e96
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment