Commit 5f56bd2c authored by Maurelian's avatar Maurelian

safe-tools: Add changeThreshold method

parent a1c2987e
...@@ -352,6 +352,16 @@ library SafeTestLib { ...@@ -352,6 +352,16 @@ library SafeTestLib {
return instance.safe.nonce(); return instance.safe.nonce();
} }
/// @dev Adds a new owner to the safe
function changeThreshold(SafeInstance memory instance, uint256 threshold) internal {
execTransaction(
instance,
address(instance.safe),
0,
abi.encodeWithSelector(OwnerManager.changeThreshold.selector, threshold)
);
}
/// @dev Adds a new owner to the safe /// @dev Adds a new owner to the safe
function addOwnerWithThreshold(SafeInstance memory instance, address owner, uint256 threshold) internal { function addOwnerWithThreshold(SafeInstance memory instance, address owner, uint256 threshold) internal {
execTransaction( execTransaction(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment