0

I am assigned to a task on a ERC20 contract, where I have been requested to add some additional data to the existing burn event. Other than this extra data on said event, the contract is just a normal ERC20 compliant contract.

My question is, does adding to the event mean that it is not longer ERC20 compliant?

The existing burn event looks like:

   event Burn(
      address indexed from,
      address indexed to,
      uint256 tokens
   );

And my modified version:

   event Burn(
      address indexed from,
      address indexed to,
      uint256 tokens,
      string externalAddress
   );

Personally I see it both breaking and adhering to the ERC20 rules, since the expected data is still there, but at the same time, it's not the true burn event that ERC20 specifies.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.