Smart Account Reference
Owners
removeOwner

removeOwner

Overview

Removes the owner owner from the Safe and updates the threshold to _threshold.

⚠️

This action can only be done via a Safe transaction.

Usage


_17
interface ISafe {
_17
function removeOwner(
_17
address prevOwner,
_17
address owner,
_17
uint256 _threshold
_17
) external;
_17
}
_17
_17
contract Example {
_17
function example() … {
_17
(ISafe safe).removeOwner(
_17
0x...,
_17
0x...,
_17
1
_17
);
_17
}
_17
}

Parameters

prevOwner

  • Type: address

Owner address that is pointing to the owner to be removed in the contract linked list (opens in a new tab).

A linked list is a data structure that allows efficient insertion and removal of elements in a list. Each element in it will point to the next one. In Safe contracts, the owners are stored in a linked list.


_10
(ISafe safe).removeOwner(
_10
0x...,
_10
0x...,
_10
1
_10
);

owner

  • Type: address

Owner address to be removed.


_10
(ISafe safe).removeOwner(
_10
0x...,
_10
0x...,
_10
1
_10
);

_threshold

  • Type: uint256

New threshold.


_10
(ISafe safe).removeOwner(
_10
0x...,
_10
0x...,
_10
1
_10
);

Events

RemovedOwner


_10
event RemovedOwner(address owner);

Emitted when an owner is removed from the Safe.

ChangedThreshold


_10
event ChangedThreshold(uint256 threshold);

Emitted when the threshold for confirmations is changed.

Was this page helpful?