Skip to content

Commit

Permalink
Readd error printing on transaction sending
Browse files Browse the repository at this point in the history
  • Loading branch information
LevBeta committed Jun 27, 2024
1 parent faa9d5d commit 0c29aa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/transaction_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,13 @@ impl TransactionManager {

let blockhash = transaction.get_recent_blockhash();

self.non_block_rpc.confirm_transaction_with_spinner(
if let Err(err) = self.non_block_rpc.confirm_transaction_with_spinner(
&signature,
blockhash,
CommitmentConfig::confirmed(),
)?;
) {
error!("Error confirming transaction: {:?}", err);
}

Ok(signature)
}
Expand Down

0 comments on commit 0c29aa3

Please sign in to comment.