diff --git a/solidity/token-erc20.sol b/solidity/token-erc20.sol index 0168ead4..8f3275ae 100644 --- a/solidity/token-erc20.sol +++ b/solidity/token-erc20.sol @@ -16,6 +16,9 @@ contract TokenERC20 { // This generates a public event on the blockchain that will notify clients event Transfer(address indexed from, address indexed to, uint256 value); + + // This generates a public event on the blockchain that will notify clients + event Approval(address indexed _owner, address indexed _spender, uint256 _value); // This notifies clients about the amount burnt event Burn(address indexed from, uint256 value); @@ -97,6 +100,7 @@ contract TokenERC20 { function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; + emit Approval(msg.sender, _spender, _value); return true; }