fix uri generation for certain wallet types (#3126)

malik1004x committed Mar 26, 2026 at 22:45 UTC d0851df2c68a9dcccd4934536475b07818681653
1 file changed +15 -1
lib/view_model/exchange/exchange_trade_view_model.dart
+15 -1
@@ -482,6 +482,8 @@ abstract class ExchangeTradeViewModelBase with Store {
482 final uriWalletType =
483 cryptoCurrencyOrTokenToWalletType(fromCurrency) ?? wallet.type;
484
485 + printV(uriWalletType);
486 +
487 switch (uriWalletType) {
488 case WalletType.bitcoin:
489 return BitcoinURI(address: inputAddress, amount: amount);
@@ -510,7 +512,19 @@ abstract class ExchangeTradeViewModelBase with Store {
512 return MoneroURI(
513 address: inputAddress,
514 amount: amount);
513 - default:
515 + case WalletType.litecoin:
516 + return LitecoinURI(amount: amount, address: inputAddress);
517 + case WalletType.nano:
518 + return NanoURI(amount: amount, address: inputAddress);
519 + case WalletType.zano:
520 + return ZanoURI(amount: amount, address: inputAddress);
521 + case WalletType.decred:
522 + return DecredURI(amount: amount, address: inputAddress);
523 + case WalletType.zcash:
524 + return ZcashURI(amount: amount, address: inputAddress);
525 + case WalletType.banano:
526 + case WalletType.none:
527 + case WalletType.haven:
528 return null;
529 }
530 }