Skip to content

Conversation

@danielpeng1
Copy link
Contributor

@danielpeng1 danielpeng1 commented Nov 20, 2025

Adding tx explanation for TxIntentMismatch errors for UTXO and ETH-like coins.

  • Implemented getTxExplanation method in both AbstractEthLikeNewCoins and AbstractUtxoCoin to generate detailed transaction explanations for error reporting.
    • Created txExplanation.ts to use in abstractUtxoCoin.ts and both verifyTransactions
  • Updated error handling in tx verification methods to include tx explanations in TxIntentMismatchError and its subclasses.
  • Added unit tests to validate the inclusion of tx explanations in error instances.

Ticket: WP-6608

@danielpeng1 danielpeng1 self-assigned this Nov 20, 2025
@danielpeng1 danielpeng1 marked this pull request as ready for review November 20, 2025 13:09
@danielpeng1 danielpeng1 requested review from a team as code owners November 20, 2025 13:09
Copy link
Contributor

@OttoAllmendinger OttoAllmendinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better deal with the string explanation -> conversion in the sdk-core errors

@danielpeng1 danielpeng1 force-pushed the WP-6608/tx-intent-mismatch-explanation branch from f7a1cba to b81a5e5 Compare November 28, 2025 14:34
@danielpeng1 danielpeng1 requested a review from a team December 2, 2025 18:03
@danielpeng1 danielpeng1 merged commit 391f989 into master Dec 3, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants