Skip to content
Permalink
Browse files

Adding TransferFrom Event

Check Issue OpenZeppelin#707 these changes makes the idea with adding the event in IERC20.sol 
Event: 
event TransferFrom(
      address indexed executor,
      address indexed from,
      address indexed to,
      uint256 value);
  • Loading branch information...
ardagokcek committed Sep 2, 2018
1 parent 4385fd5 commit 14489151d8aed87cfbee7276cb97c57cb905493f
Showing with 2 additions and 0 deletions.
  1. +2 −0 contracts/token/ERC20/ERC20.sol
@@ -105,6 +105,7 @@ contract ERC20 is IERC20 {
balances_[_to] = balances_[_to].add(_value);
allowed_[_from][msg.sender] = allowed_[_from][msg.sender].sub(_value);
emit Transfer(_from, _to, _value);
emit TransferFrom(msg.sender, _from, _to, _amount);
return true;
}

@@ -200,5 +201,6 @@ contract ERC20 is IERC20 {
allowed_[_account][msg.sender] = allowed_[_account][msg.sender].sub(
_amount);
_burn(_account, _amount);
emit TransferFrom(msg.sender, _account, address(0), _amount);
}
}

0 comments on commit 1448915

Please sign in to comment.
You can’t perform that action at this time.