addOwnerWithThreshold
Adds the owner owner
to the Safe and updates the threshold to _threshold
.
⚠️
This action can only be done via a Safe transaction.
Usage
_10interface ISafe {_10 function addOwnerWithThreshold(address owner, uint256 _threshold) external;_10}_10_10contract Example {_10 function example() ... {_10 (ISafe safe).addOwnerWithThreshold(0x..., 1);_10 }_10}
Parameters
owner
- Type:
address
New owner address.
_10(ISafe safe).addOwnerWithThreshold(_10 0x...,_10 1_10);
_threshold
- Type:
uint256
New threshold.
_10(ISafe safe).addOwnerWithThreshold(_10 0x...,_10 1_10);
Events
AddedOwner
_10event AddedOwner(address owner);
Emitted when an owner is added to the Safe.
ChangedThreshold
_10event ChangedThreshold(uint256 threshold);
Emitted when the threshold for confirmations is changed.