From f9fa0acb8c29fea4df964f31d7b15045147da304 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 27 Jul 2023 17:23:25 -0600 Subject: [PATCH] pass in only required utxo data --- fusiondart | 2 +- lib/services/mixins/fusion_interface.dart | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fusiondart b/fusiondart index ec6b38956..c643a1794 160000 --- a/fusiondart +++ b/fusiondart @@ -1 +1 @@ -Subproject commit ec6b389562dee82e4d45e15d06c403726d70cb6c +Subproject commit c643a17948a3ceedb2e21d111cc5d4d4e7d8d6f4 diff --git a/lib/services/mixins/fusion_interface.dart b/lib/services/mixins/fusion_interface.dart index a9b6fd5f8..1d18b8f04 100644 --- a/lib/services/mixins/fusion_interface.dart +++ b/lib/services/mixins/fusion_interface.dart @@ -27,7 +27,9 @@ mixin FusionInterface { // await _updateUTXOs(); List utxos = await _db.getUTXOs(_walletId).findAll(); Fusion mainFusionObject = Fusion(); - await mainFusionObject.add_coins_from_wallet(utxos); + await mainFusionObject.add_coins_from_wallet(utxos + .map((e) => (txid: e.txid, vout: e.vout, value: e.value)) + .toList()); await mainFusionObject.fusion_run(); //print ("DEBUG FUSION bitcoincash_wallet.dart 1202");