Skip to content

Commit

Permalink
reord
Browse files Browse the repository at this point in the history
  • Loading branch information
Skydev0h committed Dec 27, 2023
1 parent 55dc8de commit 89a37a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/task3.fc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
() return_if(int cond) impure asm "IFRET";
(slice) udict_get_or_throw_400?(cell dict, int key_len, int index) asm(index dict key_len) "DICTUGET" "400 THROWIFNOT";

cell get_storage() inline {
cell get_storage() inline method_id(3) {
return get_data().begin_parse().preload_ref();
}

cell wrap_storage(int version_id, cell storage) inline {
cell wrap_storage(int version_id, cell storage) inline method_id(4) {
;; add additional data required for versioning in this cell
return begin_cell()
.store_uint(version_id, 32)
Expand All @@ -22,9 +22,9 @@ int version() method_id {
}

cell process_message(cell storage, int msg_value, int balance,
cell in_msg_full, slice in_msg_body) impure method_id(10);
cell in_msg_full, slice in_msg_body) impure method_id(2);

cell migrate_one(cell old_storage) method_id(11);
cell migrate_one(cell old_storage) method_id(1);

() recv_internal(int msg_value, int balance, cell in_msg_full, slice in_msg_body) impure {
;; if (in_msg_body.slice_empty?()) { return(); } ;; deploy / ordinary
Expand Down

0 comments on commit 89a37a0

Please sign in to comment.