Smart Account Reference
Modules
disableModule

disableModule

Disables the module module for the Safe.

⚠️

This action can only be done via a Safe transaction.

Usage


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

Parameters

prevModule

  • Type: address

Previous module in the modules linked list.


_10
(ISafe safe).disableModule(
_10
0x...,
_10
0x...
_10
);

module

  • Type: address

Module to be removed.


_10
(ISafe safe).disableModule(
_10
0x...,
_10
0x...
_10
);

Events

DisabledModule


_10
event DisabledModule(address module);

Emitted when a module is disabled for the Safe.

Was this page helpful?