Skip to content

Commit

Permalink
chore(succinct-client): logs for tx submission error (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani authored Mar 7, 2024
1 parent 258da12 commit 9837327
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,10 @@ impl SuccinctClient {
ethers::types::Bytes(succinct_proof_data.calldata.0),
)
.send()
.await?
.await?;
.await
.map_err(|e| Error::msg(format!("Transaction failed: {}", e)))?
.await
.map_err(|e| Error::msg(format!("Transaction confirmation failed: {}", e)))?;

if let Some(tx) = tx {
info!(
Expand Down

0 comments on commit 9837327

Please sign in to comment.