fix swap deposit address when switching from external to wallet (#3097)
Serhii committed
Mar 16, 2026 at 02:20 UTC
82982ae5af3cfe9babb1a7b4787671c7d875599c
1 file changed
+2
lib/new-ui/pages/swap_page.dart
+2
@@ -1206,6 +1206,8 @@ class SwapAmountBoxState extends State<SwapAmountBox> {
1206
if (walletType == null) return;
1207
final wallet = await WalletInfo.get(walletName, walletType);
1208
if (wallet == null) return;
1209
+ widget.exchangeViewModel.depositAddress = wallet.address;
1210
+ addressController.text = _normalizeAddressFormat(wallet.address);
1211
widget.walletSwitcherViewModel.selectWallet(wallet);
1212
await widget.walletSwitcherViewModel.switchToSelectedWallet();
1213
}