From 769eb470270f056ffe692ab5b705b3f61442d1f2 Mon Sep 17 00:00:00 2001 From: Stanislav Eliseev Date: Thu, 21 Sep 2023 14:36:53 +0200 Subject: [PATCH] ignore non zero exit code for deploy transactions during token wallet transaction gas est --- src/core/token_wallet/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/token_wallet/mod.rs b/src/core/token_wallet/mod.rs index 136988380..f7da7e223 100644 --- a/src/core/token_wallet/mod.rs +++ b/src/core/token_wallet/mod.rs @@ -177,8 +177,8 @@ impl TokenWallet { if message.state_init().is_some() && message.src_ref() == Some(self.address()) { // Simulate first deploy transaction // NOTE: we don't need to count attached amount here because of separate `initial_balance` - let dest_tx = tree.next().await?.ok_or(TokenWalletError::NoDestTx)?; - check_exit_code(&dest_tx, TokenWalletError::DestinationTxFailed)?; + let _ = tree.next().await?.ok_or(TokenWalletError::NoDestTx)?; + //also we ignore non zero exit code for deploy transactions } }