From 81538d942399f2b434354e4fe73596f6a05dddd2 Mon Sep 17 00:00:00 2001 From: Skydev0h Date: Thu, 21 Dec 2023 22:49:21 +0200 Subject: [PATCH] 1 --- contracts/task1.fc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contracts/task1.fc b/contracts/task1.fc index b5b2d65..f9c416d 100644 --- a/contracts/task1.fc +++ b/contracts/task1.fc @@ -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); @@ -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()