pass in only required utxo data

This commit is contained in:
julian 2023-07-27 17:23:25 -06:00
parent 8e767d200e
commit f9fa0acb8c
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit ec6b389562dee82e4d45e15d06c403726d70cb6c
Subproject commit c643a17948a3ceedb2e21d111cc5d4d4e7d8d6f4

View file

@ -27,7 +27,9 @@ mixin FusionInterface {
// await _updateUTXOs();
List<UTXO> 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");