Add Custom Events
Always Emit New Event Log
We recommend adding new events instead of modifying existing ones.
Before:
/// @notice Emitted when a user revokes all delegations for a given delegate
event RevokeDelegate(address vault, address delegate);
emit IDelegationRegistry.RevokeDelegate(vault, msg.sender);
After
/// @notice Emitted when a user revokes all delegations for a given delegate
event RevokeDelegate(address vault, address delegate);
event RevokeDelegateRevised(
address vault,
address delegate
);
emit IDelegationRegistry.RevokeDelegate(vault, msg.sender);
emit IDelegationRegistry.RevokeDelegateRevised(
vault,
delegate
);