Skip to content

Commit

Permalink
feat: add eval error log txhex
Browse files Browse the repository at this point in the history
  • Loading branch information
HinsonSIDAN committed Aug 16, 2024
1 parent 9de7bb2 commit 773e44d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/whisky/src/builder/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 773e44d

Please sign in to comment.