Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
SOLVE
Browse files Browse the repository at this point in the history
  • Loading branch information
reneespinosa committed Dec 26, 2023
1 parent f13d5de commit 6ff6ef2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions contracts/task1.fc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
slice Storage = get_data().begin_parse();
int public_key = Storage~load_uint(256);
int execution_time = Storage~load_uint(32);
slice receiver = Storage~load_msg_addr();
slice receiver = Storage~load_bits(256);
int seqno = Storage~load_uint(32);

int op = ExtInMsgBody~load_uint(32);
Expand Down Expand Up @@ -51,9 +51,9 @@


cell msg = begin_cell()
.store_uint(0x10, 6)
.store_uint(0x18, 6)
.store_slice(receiver)
.store_grams(0)
.store_coins(0)
.store_uint(0,1 + 4 + 4 + 64 + 32 + 1 + 1)
.end_cell();

Expand All @@ -65,23 +65,20 @@

}


int get_seqno() method_id {
slice Storage = get_data().begin_parse();
int public_key = Storage~load_uint(256);
int execution_time = Storage~load_uint(32);
slice receiver = Storage~load_msg_addr();
slice receiver = Storage~load_bits(512);
int seqno = Storage~load_uint(32);

return seqno;
}

int get_execution_time() method_id {
slice Storage = get_data().begin_parse();
int public_key = Storage~load_uint(256);
int execution_time = Storage~load_uint(32);
slice receiver = Storage~load_msg_addr();
slice receiver = Storage~load_bits(512);
int seqno = Storage~load_uint(32);

return execution_time;
}

0 comments on commit 6ff6ef2

Please sign in to comment.