From 3963233c0e84f896a8af33a298b9e18067eea4fd Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Mon, 9 Sep 2024 15:39:19 -0700 Subject: [PATCH] topup fix --- cw_bitcoin/lib/litecoin_wallet_addresses.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cw_bitcoin/lib/litecoin_wallet_addresses.dart b/cw_bitcoin/lib/litecoin_wallet_addresses.dart index 9f63f6662..26a18df00 100644 --- a/cw_bitcoin/lib/litecoin_wallet_addresses.dart +++ b/cw_bitcoin/lib/litecoin_wallet_addresses.dart @@ -62,8 +62,9 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with BitcoinAddressType? addressType, }) { if (addressType == SegwitAddresType.mweb) { - topUpMweb(index); - return hd == sideHd ? mwebAddrs[0] : mwebAddrs[index + 1]; + topUpMweb(index).then((value) { + return hd == sideHd ? mwebAddrs[0] : mwebAddrs[index + 1]; + }); } return generateP2WPKHAddress(hd: hd, index: index, network: network); }