mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix swap deposit address when switching from external to wallet (#3097)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user