Skip to content

Commit

Permalink
Fix gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
techraed committed Sep 30, 2024
1 parent 8ad1139 commit bc3d324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtest/src/state/gas_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<PlainNodeId>()))
if !is_reply || !GasTree::exists_and_deposit(GasNodeId::from(new_mid.cast::<PlainNodeId>()))
{
return GasTree::split_with_value(
GasNodeId::from(original_mid.cast::<PlainNodeId>()),
Expand All @@ -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::<PlainNodeId>()))
if !is_reply || !GasTree::exists_and_deposit(GasNodeId::from(new_mid.cast::<PlainNodeId>()))
{
return GasTree::split(
GasNodeId::from(original_node.cast::<PlainNodeId>()),
Expand Down

0 comments on commit bc3d324

Please sign in to comment.