Smart Account Reference
Owners
changeThreshold

changeThreshold

Changes the threshold of the Safe to _threshold.

⚠️

This action can only be done via a Safe transaction.

Usage


_10
interface ISafe {
_10
function changeThreshold(uint256 _threshold) external;
_10
}
_10
_10
contract Example {
_10
function example() ... {
_10
(ISafe safe).changeThreshold(1);
_10
}
_10
}

Parameters

_threshold

  • Type: uint256

New threshold.


_10
(ISafe safe).changeThreshold(
_10
1
_10
);

Events

ChangedThreshold


_10
event ChangedThreshold(uint256 threshold);

Emitted when the threshold for confirmations is changed.

Was this page helpful?