From 4191dd28e49e6c2a58273a353a8d302f2a5e4f3b Mon Sep 17 00:00:00 2001 From: Arterialist <37044735+arterialist@users.noreply.github.com> Date: Fri, 28 Apr 2023 16:35:05 +0400 Subject: [PATCH] fix workchain var typo in msg_fwd_fee calculation --- misc/forward-fee-calc.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/forward-fee-calc.fc b/misc/forward-fee-calc.fc index d93f7c7..bac1e1d 100644 --- a/misc/forward-fee-calc.fc +++ b/misc/forward-fee-calc.fc @@ -4,7 +4,7 @@ Forward fee calculation supporting different workchains ;; See crypto/block/transaction.cpp:L1499 int msg_fwd_fee(slice destination, cell message_body, cell init_state, int max_viewed_cells) inline { - (int wc, _) = parse_std_addr(destination); + (int workchain, _) = parse_std_addr(destination); throw_unless(107, (workchain == -1) | (workchain == 0) ); int config_index = 25 + workchain; slice cfg = config_param(config_index).begin_parse().skip_bits(8);