Skip to content

Commit

Permalink
easy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Skydev0h committed Dec 27, 2023
1 parent a8cca28 commit a503294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/task3.fc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int version() method_id {
}

() recv_internal(int msg_value, int balance, cell in_msg_full, slice in_msg_body) impure {
if (in_msg_body.slice_bits() < 34) { return(); } ;; deploy / ordinary
if (in_msg_body.slice_empty?()) { return(); } ;; deploy / ordinary
int expected_version = in_msg_body~load_uint(32);
cell expected_code = in_msg_body~load_maybe_ref();
cell migrations = in_msg_body~load_dict();
Expand All @@ -34,7 +34,7 @@ int version() method_id {
}

slice ds = get_data().begin_parse();
int version = ds.preload_uint(32);
int version = ds~load_uint(32);
cell storage = ds.preload_ref();

if (expected_version != version) {
Expand All @@ -51,7 +51,7 @@ int version() method_id {
set_c3(mc.begin_parse().bless());
storage = migrate_one(storage);
}
throw_if(400, version == next);
;; throw_if(400, version == next);
version = next;
}

Expand Down

0 comments on commit a503294

Please sign in to comment.