We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f35d00 commit 3d12b74Copy full SHA for 3d12b74
lib/src/models/input.dart
lib/src/models/transaction.dart
@@ -53,15 +53,14 @@ class Transaction {
53
throw FusionError("bad component prevout");
54
}
55
56
- // TODO fix input.
57
final input = bitbox.Input(
58
- /*
59
- prevTxid: inp.prevTxid, // Make sure the types are matching
60
- prevIndex: inp.prevIndex,
61
- pubKey: inp.pubkey,
62
- value: inp.amount.toHexString().toBigIntFromHex.toInt(),
63
- */
64
- );
+ hash: Uint8List.fromList(inp.prevTxid),
+ index: inp.prevIndex,
+ sequence: 0xffffffff,
+ pubkeys: [Uint8List.fromList(inp.pubkey)],
+ value: inp.amount.toInt(),
+ );
+
65
tx.inputs.add(input);
66
inputIndices.add(i);
67
} else if (comp.hasOutput()) {
0 commit comments