Smart Account Reference
Modules
enableModule

enableModule

Enables a new Safe Module in a Safe account.

⚠️

This action can only be done via a Safe transaction.

Usage


_10
interface ISafe {
_10
function enableModule(address module) external;
_10
}
_10
_10
contract Example {
_10
function example() ... {
_10
(ISafe safe).enableModule(0x...);
_10
}
_10
}

Parameters

module

  • Type: address

Safe Module to be enabled.


_10
(ISafe safe).enableModule(
_10
0x...
_10
);

Events

EnabledModule


_10
event EnabledModule(address module);

Emitted when a module is enabled for the Safe.

Was this page helpful?