From d8cb70d53577ba1cc14cc3495cfd2371efedbd4f Mon Sep 17 00:00:00 2001 From: Skydev0h Date: Wed, 27 Dec 2023 15:09:36 +0200 Subject: [PATCH] blabla --- contracts/task3.fc | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/contracts/task3.fc b/contracts/task3.fc index 11e28e0..74d16a7 100644 --- a/contracts/task3.fc +++ b/contracts/task3.fc @@ -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?()); @@ -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 >>>>>