From 773e44d763f1737e259e459c68a8532e7896f876 Mon Sep 17 00:00:00 2001 From: SIDANWhatever Date: Fri, 16 Aug 2024 13:23:32 +0800 Subject: [PATCH] feat: add eval error log txhex --- packages/whisky/src/builder/complete.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/whisky/src/builder/complete.rs b/packages/whisky/src/builder/complete.rs index a969ea8..1d5c939 100644 --- a/packages/whisky/src/builder/complete.rs +++ b/packages/whisky/src/builder/complete.rs @@ -35,12 +35,11 @@ impl MeshTxBuilder { .await; match tx_evaluation_result { Ok(actions) => self.update_redeemer(actions), - Err(err) => { - return Err(JsError::from_str(&format!( - "Error evaluating transaction: {:?}", - err - ))) - } + Err(err) => return Err(JsError::from_str(&format!( + "Error evaluating transaction - tx_hex: [ {} ] ,Error message: [ {:?} ]", + self.tx_hex(), + err + ))), } } None => self,