Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Skydev0h committed Dec 21, 2023
1 parent 84b14c8 commit 81538d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contracts/task1.fc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
int hash = cell_hash(ref);
slice sub = ref.begin_parse();
int locked_for = sub~load_uint(32);
int new_seqno = sub.preload_uint(32);
int new_seqno = sub~load_uint(32);
sub.end_parse();

slice data = get_data().begin_parse();
int public_key = data~load_uint(256);
Expand Down Expand Up @@ -51,9 +52,11 @@
int execution_time = data~load_uint(32);
slice receiver = data~load_msg_addr();
throw_if(124, execution_time >= now());
;; int msg_public_key = in_msg_body.preload_uint(256);
;; int msg_public_key = body.preload_uint(256);
;; throw_if(125, msg_public_key != public_key);

;; body.preload_uint(256).end_parse();

accept_message();

builder msg = begin_cell()
Expand Down

0 comments on commit 81538d9

Please sign in to comment.