From d0851df2c68a9dcccd4934536475b07818681653 Mon Sep 17 00:00:00 2001 From: malik1004x Date: Thu, 26 Mar 2026 22:45:06 +0100 Subject: [PATCH] fix uri generation for certain wallet types (#3126) --- .../exchange/exchange_trade_view_model.dart | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/view_model/exchange/exchange_trade_view_model.dart b/lib/view_model/exchange/exchange_trade_view_model.dart index e85d493b2..60f6e2335 100644 --- a/lib/view_model/exchange/exchange_trade_view_model.dart +++ b/lib/view_model/exchange/exchange_trade_view_model.dart @@ -482,6 +482,8 @@ abstract class ExchangeTradeViewModelBase with Store { final uriWalletType = cryptoCurrencyOrTokenToWalletType(fromCurrency) ?? wallet.type; + printV(uriWalletType); + switch (uriWalletType) { case WalletType.bitcoin: return BitcoinURI(address: inputAddress, amount: amount); @@ -510,7 +512,19 @@ abstract class ExchangeTradeViewModelBase with Store { return MoneroURI( address: inputAddress, amount: amount); - default: + case WalletType.litecoin: + return LitecoinURI(amount: amount, address: inputAddress); + case WalletType.nano: + return NanoURI(amount: amount, address: inputAddress); + case WalletType.zano: + return ZanoURI(amount: amount, address: inputAddress); + case WalletType.decred: + return DecredURI(amount: amount, address: inputAddress); + case WalletType.zcash: + return ZcashURI(amount: amount, address: inputAddress); + case WalletType.banano: + case WalletType.none: + case WalletType.haven: return null; } }