File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ abstract contract MultisigBase is Simulator {
21
21
22
22
// Virtual method which can be overwritten
23
23
// Default logic here is vestigial for backwards compatibility
24
+ // IMPORTANT: this method is used in the sign, simulate, AND execution contexts
25
+ // If you override it, ensure that the behavior is correct for all contexts
26
+ // As an example, if you are pre-signing a message that needs safe.nonce+1 (before safe.nonce is executed),
27
+ // you should explicitly set the nonce value with an env var.
28
+ // Overwriting this method with safe.nonce + 1 will cause issues upon execution because the transaction
29
+ // hash will differ from the one signed.
24
30
function _getNonce (IGnosisSafe safe ) internal view virtual returns (uint256 nonce ) {
25
31
nonce = safe.nonce ();
26
32
console.log ("Safe current nonce: " , nonce);
You can’t perform that action at this time.
0 commit comments