From bc3d3241cbf6ca31740d811351fc8d54655bb5d4 Mon Sep 17 00:00:00 2001 From: Sabaun Taraki Date: Mon, 30 Sep 2024 19:16:38 +0400 Subject: [PATCH] Fix gtest --- gtest/src/state/gas_tree.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtest/src/state/gas_tree.rs b/gtest/src/state/gas_tree.rs index ef2d1a9e34e..98435d98780 100644 --- a/gtest/src/state/gas_tree.rs +++ b/gtest/src/state/gas_tree.rs @@ -88,7 +88,7 @@ impl GasTreeManager { new_mid: MessageId, amount: Gas, ) -> Result<(), GasTreeError> { - if !is_reply && !GasTree::exists_and_deposit(GasNodeId::from(new_mid.cast::())) + if !is_reply || !GasTree::exists_and_deposit(GasNodeId::from(new_mid.cast::())) { return GasTree::split_with_value( GasNodeId::from(original_mid.cast::()), @@ -107,7 +107,7 @@ impl GasTreeManager { original_node: impl Origin, new_mid: MessageId, ) -> Result<(), GasTreeError> { - if !is_reply && !GasTree::exists_and_deposit(GasNodeId::from(new_mid.cast::())) + if !is_reply || !GasTree::exists_and_deposit(GasNodeId::from(new_mid.cast::())) { return GasTree::split( GasNodeId::from(original_node.cast::()),