Skip to content

Commit

Permalink
Merge pull request #62 from gnosis/add-events
Browse files Browse the repository at this point in the history
Add events required by ERC-5005
  • Loading branch information
auryn-macmillan authored Jul 13, 2022
2 parents 1a2c976 + f26eac8 commit d3d0e49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions contracts/core/Modifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ abstract contract Modifier is Module, IAvatar {
/// Mapping of modules.
mapping(address => address) internal modules;

event EnabledModule(address module);
event DisabledModule(address module);

/// `sender` is not an authorized module.
/// @param sender The address of the sender.
error NotAuthorized(address sender);
Expand Down
5 changes: 5 additions & 0 deletions contracts/interfaces/IAvatar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ pragma solidity >=0.7.0 <0.9.0;
import "@gnosis.pm/safe-contracts/contracts/common/Enum.sol";

interface IAvatar {
event EnabledModule(address module);
event DisabledModule(address module);
event ExecutionFromModuleSuccess(address indexed module);
event ExecutionFromModuleFailure(address indexed module);

/// @dev Enables a module on the avatar.
/// @notice Can only be called by the avatar.
/// @notice Modules should be stored as a linked list.
Expand Down

0 comments on commit d3d0e49

Please sign in to comment.