From 215e7851981819166d53bf970777c70338bb2292 Mon Sep 17 00:00:00 2001 From: Serhii Date: Tue, 10 Sep 2024 21:39:07 +0300 Subject: [PATCH] Update electrum_wallet.dart (#1664) --- cw_bitcoin/lib/electrum_wallet.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index b9bb0deb4b..191272b1f0 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -1089,6 +1089,8 @@ abstract class ElectrumWalletBase }); } + unspentCoins.removeWhere((utxo) => estimatedTx.utxos.any((e) => e.utxo.txHash == utxo.hash)); + await updateBalance(); }); } catch (e) {