Skip to content

Commit

Permalink
ignore non zero exit code for deploy transactions during token wallet…
Browse files Browse the repository at this point in the history
… transaction gas est
  • Loading branch information
MrWad3r committed Sep 21, 2023
1 parent b1278fe commit 769eb47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/token_wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 769eb47

Please sign in to comment.