From 920154df11d4a7971663ae6f9b6d6694dfc248a4 Mon Sep 17 00:00:00 2001 From: CoinDev1121 Date: Thu, 3 Aug 2017 16:17:52 -0700 Subject: [PATCH] trigger new Transfer event remove _data index parameter of new Transfer event to match https://github.com/ethereum/EIPs/issues/223 --- contracts/token/ERC223.sol | 2 +- contracts/token/Standard223Token.sol | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contracts/token/ERC223.sol b/contracts/token/ERC223.sol index 79f7982..7c62c48 100644 --- a/contracts/token/ERC223.sol +++ b/contracts/token/ERC223.sol @@ -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); } diff --git a/contracts/token/Standard223Token.sol b/contracts/token/Standard223Token.sol index 59c7af3..677b05a 100644 --- a/contracts/token/Standard223Token.sol +++ b/contracts/token/Standard223Token.sol @@ -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; }