File tree 1 file changed +5
-3
lines changed
mainnet/2024-03-05-pause-unpause-test/script
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,16 @@ contract UnpausePortal is MultisigBuilder {
31
31
return GUARDIAN;
32
32
}
33
33
34
- function _addOverrides (address _safe ) internal override pure returns (SimulationStateOverride memory ) {
35
- return overrideSafeThresholdAndOwner (_safe, DEFAULT_SENDER);
34
+ function _addOverrides (address _safe ) internal override view returns (SimulationStateOverride memory ) {
35
+ IGnosisSafe safe = IGnosisSafe (payable (_safe));
36
+ uint256 _nonce = _getNonce (safe);
37
+ return overrideSafeThresholdOwnerAndNonce (_safe, DEFAULT_SENDER, _nonce);
36
38
}
37
39
38
40
function _getNonce (IGnosisSafe safe ) internal override view returns (uint256 nonce ) {
39
41
uint256 _nonce = safe.nonce ();
40
42
console.log ("Safe current nonce: " , _nonce);
41
- console.log ("Incrememnting by 1 to account for planned `Update ` tx " );
43
+ console.log ("Incrementing by 1 to account for planned `Pause ` tx " );
42
44
return _nonce+1 ;
43
45
}
44
46
}
You can’t perform that action at this time.
0 commit comments