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
_17interface ISafe {_17 function removeOwner(_17 address prevOwner,_17 address owner,_17 uint256 _threshold_17 ) external;_17}_17_17contract 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
_10event RemovedOwner(address owner);
Emitted when an owner is removed from the Safe.
ChangedThreshold
_10event ChangedThreshold(uint256 threshold);
Emitted when the threshold for confirmations is changed.