From 9c352d0e992e8279bdf840011eb2086a40e8743c Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 6 Oct 2023 16:33:01 -0600 Subject: [PATCH] update ref --- fusiondart | 2 +- lib/services/mixins/fusion_wallet_interface.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fusiondart b/fusiondart index e97a6c25e..d17baa1c2 160000 --- a/fusiondart +++ b/fusiondart @@ -1 +1 @@ -Subproject commit e97a6c25edd1ce0c441bfd181a8032275bff6c40 +Subproject commit d17baa1c2ec60f544783c705496435f055830620 diff --git a/lib/services/mixins/fusion_wallet_interface.dart b/lib/services/mixins/fusion_wallet_interface.dart index c61f276c1..6b7443bb7 100644 --- a/lib/services/mixins/fusion_wallet_interface.dart +++ b/lib/services/mixins/fusion_wallet_interface.dart @@ -460,7 +460,7 @@ extension FusionUTXO on UTXO { prevTxid: utf8.encode(txid), prevIndex: vout, pubKey: addr.publicKey, - amount: value, + value: BigInt.from(value), ); } catch (e) { rethrow; @@ -525,7 +525,7 @@ extension FusionTransaction on Transaction { fusion.Transaction fusionTransaction = fusion.Transaction(); // WIP. - fusionTransaction.Inputs = await Future.wait(inputs.map((input) async { + fusionTransaction.inputs = await Future.wait(inputs.map((input) async { // Find input amount. Map _tx = await cachedElectrumX.getTransaction( coin: Coin.bitcoincash, @@ -565,11 +565,11 @@ extension FusionTransaction on Transaction { prevTxid: utf8.encode(input.txid), prevIndex: input.vout, pubKey: scriptPubKeyHex.toUint8ListFromHex, - amount: value.raw.toInt(), + value: value.raw, ); }).toList()); - fusionTransaction.Outputs = await Future.wait(outputs.map((output) async { + fusionTransaction.outputs = await Future.wait(outputs.map((output) async { // TODO: maybe only need one of these but IIRC scriptPubKeyAddress is required for bitcoincash transactions? if (output.scriptPubKeyAddress.isEmpty) { throw Exception("isar model output.scriptPubKeyAddress is empty!");