You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MoneroEngine.ts
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -629,12 +629,20 @@ export class MoneroEngine implements EdgeCurrencyEngine {
629
629
},
630
630
options
631
631
)
632
-
}catch(e: any){
632
+
}catch(error: unknown){
633
+
if(!(errorinstanceofError)){
634
+
thrownewError(String(error))
635
+
}
636
+
if(error.message==='Not enough spendables'){
637
+
thrownewInsufficientFundsError({
638
+
tokenId: PRIMARY_CURRENCY_TOKEN_ID
639
+
})
640
+
}
633
641
// This error is specific to mymonero-core-js: github.com/mymonero/mymonero-core-cpp/blob/a53e57f2a376b05bb0f4d851713321c749e5d8d9/src/monero_transfer_utils.hpp#L112-L162
0 commit comments