From 98373274acb5609c74e2b09d1741d6abddc173ef Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Wed, 6 Mar 2024 17:22:17 -0800 Subject: [PATCH] chore(succinct-client): logs for tx submission error (#379) --- client/src/request.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/request.rs b/client/src/request.rs index 5df434fc..33716120 100644 --- a/client/src/request.rs +++ b/client/src/request.rs @@ -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!(