From 40a766b269024dddd1c37ab562d7ef4c540b3fd2 Mon Sep 17 00:00:00 2001 From: Behrang Norouzinia Date: Thu, 4 Jul 2024 18:03:41 +0330 Subject: [PATCH] Replace if with ifnot to improve gas usage --- contracts/wallet_v5.fc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/wallet_v5.fc b/contracts/wallet_v5.fc index 65e213ab..252aa3eb 100644 --- a/contracts/wallet_v5.fc +++ b/contracts/wallet_v5.fc @@ -96,7 +96,7 @@ cell verify_c5_actions(cell c5, int is_external) inline { ;; Simply set the C5 register with all pre-computed actions after verification: set_c5_actions(c5_actions.verify_c5_actions(is_external)); } - if (cs~load_int(1) == 0) { ;; has_other_actions + ifnot (cs~load_int(1)) { ;; has_other_actions return (); } @@ -298,4 +298,4 @@ cell get_extensions() method_id { return get_data().begin_parse() .skip_bits(size::bool + size::seqno + size::wallet_id + size::public_key) .preload_dict(); -} \ No newline at end of file +}