fix swap deposit address when switching from external to wallet (#3097)

This commit is contained in:
Serhii
2026-03-16 01:20:02 +01:00
committed by GitHub
parent b1511a2fb0
commit 82982ae5af
+2
View File
@@ -1206,6 +1206,8 @@ class SwapAmountBoxState extends State<SwapAmountBox> {
if (walletType == null) return;
final wallet = await WalletInfo.get(walletName, walletType);
if (wallet == null) return;
widget.exchangeViewModel.depositAddress = wallet.address;
addressController.text = _normalizeAddressFormat(wallet.address);
widget.walletSwitcherViewModel.selectWallet(wallet);
await widget.walletSwitcherViewModel.switchToSelectedWallet();
}