Skip to content

Commit

Permalink
trigger new Transfer event
Browse files Browse the repository at this point in the history
remove _data index parameter of new Transfer event to match
ethereum/EIPs#223
  • Loading branch information
B-Guru committed Aug 8, 2017
1 parent ef76bef commit 426f151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/token/ERC223.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import "./ERC20.sol";
contract ERC223 is ERC20 {
function transfer(address to, uint value, bytes data) returns (bool success);

event Transfer(address indexed from, address indexed to, uint value, bytes indexed data);
event Transfer(address indexed from, address indexed to, uint value, bytes data);
}
4 changes: 3 additions & 1 deletion contracts/token/Standard223Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ contract Standard223Token is ERC223, StandardToken {
public returns (bool success)
{
super.transfer(_to, _value);
if (isContract(_to))
if (isContract(_to)) {
Transfer(msg.sender, _to, _value, _data);
contractFallback(_to, _value, _data);
}
return true;
}

Expand Down

0 comments on commit 426f151

Please sign in to comment.