Skip to content

fix(dashboard): show XDR decode errors instead of crashing the inspector - #1117

Merged
ONEONUORA merged 1 commit into
Fracverse:masterfrom
Yunusabdul38:fix/xdr-inspector-decode-error
Oct 16, 2026
Merged

ONEONUORA merged 1 commit into
Fracverse:masterfrom
Yunusabdul38:fix/xdr-inspector-decode-error

Conversation

@Yunusabdul38

@Yunusabdul38 Yunusabdul38 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Invalid XDR threw during XdrViewer render, which the existing try/catch around <XdrViewer /> can't catch, so the dialog crashed instead of showing "Failed to decode XDR". Decode errors are now handled inside the viewer. Adds tests for the inspector (envelope summary, ScVal, invalid input, close). 2 files, +100/-16.

Closes #1029
Closes #1031
closes #1028
Closes #1027

decodeXdr throws on unknown payloads, but it ran inside XdrViewer's render,
so the try/catch around <XdrViewer /> in PaymentDetailDialog never caught it
and invalid XDR crashed the dialog. Decode inside XdrViewer and render the
error panel there. Adds tests for envelope, ScVal, invalid input and close.
@drips-wave

drips-wave Bot commented Oct 16, 2026

Copy link
Copy Markdown

@Yunusabdul38 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job @Yunusabdul38

@ONEONUORA
ONEONUORA merged commit e5dac7d into Fracverse:master Oct 16, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment