From bd8df5eed9c3cc010a13d7838430c4435605244d Mon Sep 17 00:00:00 2001 From: Serhii Date: Thu, 19 Dec 2024 14:18:41 +0200 Subject: [PATCH] minor fix --- cw_bitcoin/lib/electrum_wallet.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index d07ac80d2..eae830db1 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -1361,7 +1361,10 @@ abstract class ElectrumWalletBase @action Future updateAllUnspents() async { List updatedUnspentCoins = []; - final previousUnspentCoins = List.from(unspentCoins); + + final previousUnspentCoins = List.from(unspentCoins.where((utxo) => + utxo.bitcoinAddressRecord.type != SegwitAddresType.mweb && + utxo.bitcoinAddressRecord is! BitcoinSilentPaymentAddressRecord)); if (hasSilentPaymentsScanning) { // Update unspents stored from scanned silent payment transactions