Skip to content

Commit

Permalink
fix throw argument
Browse files Browse the repository at this point in the history
  • Loading branch information
oleganza authored Feb 20, 2024
1 parent c2734f0 commit b233fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/wallet_v5.fc
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ cell verify_actions(cell c5) inline {
;; If public key is disabled, stored_seqno is strictly less than zero: stored_seqno < 0
;; However, msg_seqno is uint, therefore it can be only greater or equal to zero: msg_seqno >= 0
;; Thus, if public key is disabled, these two domains NEVER intersect, and additional check is not needed
throw_unless(msg_seqno == stored_seqno);
throw_unless(subwallet_id == stored_subwallet);
throw_if(valid_until <= now());
throw_unless(33, msg_seqno == stored_seqno);
throw_unless(34, subwallet_id == stored_subwallet);
throw_if(36, valid_until <= now());

;; Store and commit the seqno increment to prevent replays even if the subsequent requests fail.
stored_seqno = stored_seqno + 1;
Expand Down

0 comments on commit b233fb7

Please sign in to comment.