Skip to content

fix(onramp): re-throw CancellationException in buildSwapTransaction#812

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/phantom-onramp-cancellation-noise
May 31, 2026
Merged

fix(onramp): re-throw CancellationException in buildSwapTransaction#812
bmc08gt merged 1 commit into
code/cashfrom
fix/phantom-onramp-cancellation-noise

Conversation

@bmc08gt

@bmc08gt bmc08gt commented May 31, 2026

Copy link
Copy Markdown
Collaborator

When users navigate away from the Swap screen during Phantom transaction building, viewModelScope cancellation was caught by the generic catch(Exception) block and wrapped as FailedToCreateTransaction. Re-throw CancellationException to let coroutine cancellation propagate naturally.

When users navigate away from the Swap screen during Phantom transaction
building, viewModelScope cancellation was caught by the generic
catch(Exception) block and wrapped as FailedToCreateTransaction, causing
~3,730 spurious Bugsnag events. Re-throw CancellationException to let
coroutine cancellation propagate naturally.
@bmc08gt bmc08gt self-assigned this May 31, 2026
@bmc08gt bmc08gt merged commit 95d6c81 into code/cash May 31, 2026
3 checks passed
@github-actions github-actions Bot added type: fix Bug fix area: onramp Deposit, purchase, Coinbase, fiat on-ramp area: deeplinks Deep link handling, URL routing, and link parsing labels May 31, 2026
@bmc08gt bmc08gt deleted the fix/phantom-onramp-cancellation-noise branch June 1, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: deeplinks Deep link handling, URL routing, and link parsing area: onramp Deposit, purchase, Coinbase, fiat on-ramp type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant