Smart Account Reference
Modules
disableModule

disableModule

Disables the module module for the Safe.

⚠️

This action can only be done via a Safe transaction.

Usage

interface ISafe {
function disableModule(address prevModule, address module) external;
}

contract Example {
function example() ... {
(ISafe safe).disableModule(0x..., 0x...);
}
}

Parameters

prevModule

  • Type: address

Previous module in the modules linked list.

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

module

  • Type: address

Module to be removed.

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

Events

DisabledModule

event DisabledModule(address module);

Emitted when a module is disabled for the Safe.

Last updated on

Was this page helpful?

We use cookies to provide you with the best experience and to help improve our website and application. Please read our Cookie Policy for more information. By clicking "Accept all", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and provide customer support.