Smart Account Reference
Owners
addOwnerWithThreshold

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


_10
interface ISafe {
_10
function addOwnerWithThreshold(address owner, uint256 _threshold) external;
_10
}
_10
_10
contract 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


_10
event AddedOwner(address owner);

Emitted when an owner is added to the Safe.

ChangedThreshold


_10
event ChangedThreshold(uint256 threshold);

Emitted when the threshold for confirmations is changed.

Was this page helpful?