Skip to content

Commit

Permalink
blabla
Browse files Browse the repository at this point in the history
  • Loading branch information
Skydev0h committed Dec 27, 2023
1 parent 3c9cc8c commit d8cb70d
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions contracts/task3.fc
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ int version() method_id {
return get_data().begin_parse().preload_uint(32);
}

;; <<<<< Custom version-specific code begins

cell process_message(cell storage, int msg_value, int balance, cell in_msg_full, slice in_msg_body) impure {
slice cs = storage.begin_parse();
int current_amount = cs.preload_uint(32);
return begin_cell().store_uint(current_amount + 1, 32).end_cell();
}

cell migrate_one(cell old_storage) { return old_storage; }

;; Custom version-specific code ends >>>>>

cell _migrate_one(cell old_storage) asm "3 CALLDICT";

() 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
return_if(in_msg_body.slice_empty?());
Expand Down Expand Up @@ -104,3 +90,15 @@ cell _migrate_one(cell old_storage) asm "3 CALLDICT";
expected_version~impure_touch();
-}
}

;; <<<<< Custom version-specific code begins

cell process_message(cell storage, int msg_value, int balance, cell in_msg_full, slice in_msg_body) impure {
slice cs = storage.begin_parse();
int current_amount = cs.preload_uint(32);
return begin_cell().store_uint(current_amount + 1, 32).end_cell();
}

cell migrate_one(cell old_storage) { return old_storage; }

;; Custom version-specific code ends >>>>>

0 comments on commit d8cb70d

Please sign in to comment.