-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handle send transaction API errors #26253
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [9d401b9]
Page Load Metrics (389 ± 299 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26253 +/- ##
===========================================
- Coverage 69.95% 69.94% -0.00%
===========================================
Files 1411 1411
Lines 49963 49972 +9
Branches 13800 13801 +1
===========================================
+ Hits 34948 34952 +4
- Misses 15015 15020 +5 ☔ View full report in Codecov by Sentry. |
82ccf29
to
8d99049
Compare
Quality Gate passedIssues Measures |
Builds ready [8d99049]
Page Load Metrics (71 ± 16 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
We are seeing a pair of sentry errors for a failing deconstruction error,
Cannot destructure property 'id' of '(intermediate value)' as it is null
:This is because instead of returning an error when a transaction fails, we return
null
for the metadata.This PR addresses the underlying issue by rethrowing the error for a failed transaction request, then adding UI treatments for the failed transaction.
Related issues
Fixes:
Manual testing steps
Error
right before thesendTransaction
background method inaddTransactionAndRouteToConfirmationPage
transactionErrored
copy is shownScreenshots/Recordings
Before
Screen.Recording.2024-07-31.at.12.26.52.PM.mov
After
Screen.Recording.2024-07-31.at.12.25.46.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist