From 2b23ab1993e5ae5897f1c1eda47ee110d86c557c Mon Sep 17 00:00:00 2001 From: Rafael Saes Date: Fri, 5 Apr 2024 19:20:18 -0300 Subject: [PATCH] fix: invalid Object in sendData --- cw_bitcoin/lib/electrum_wallet.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index 4cd2d9f22..617770661 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -220,7 +220,7 @@ abstract class ElectrumWalletBase chainTip: currentChainTip, electrumClient: ElectrumClient(), transactionHistoryIds: transactionHistory.transactions.keys.toList(), - node: node!, + node: ScanNode(node!.uri, node!.useSSL), labels: walletAddresses.labels, )); @@ -1412,11 +1412,18 @@ abstract class ElectrumWalletBase } } +class ScanNode { + final Uri uri; + final bool? useSSL; + + ScanNode(this.uri, this.useSSL); +} + class ScanData { final SendPort sendPort; final SilentPaymentOwner silentAddress; final int height; - final Node node; + final ScanNode node; final BasedUtxoNetwork network; final int chainTip; final ElectrumClient electrumClient;