Commit 14acff1
committed
fix(onramp): re-throw CancellationException in buildSwapTransaction
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.1 parent f1fcca4 commit 14acff1
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| |||
0 commit comments