Skip to content

Commit 5192cea

Browse files
Fix simulation internal function for unpausing (#142)
* Fix simulation internal function for unpausing * Fix typo
1 parent 779d79e commit 5192cea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mainnet/2024-03-05-pause-unpause-test/script/UnpausePortal.s.sol

+5-3
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ contract UnpausePortal is MultisigBuilder {
3131
return GUARDIAN;
3232
}
3333

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);
3638
}
3739

3840
function _getNonce(IGnosisSafe safe) internal override view returns (uint256 nonce) {
3941
uint256 _nonce = safe.nonce();
4042
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");
4244
return _nonce+1;
4345
}
4446
}

0 commit comments

Comments
 (0)