Skip to content

Commit

Permalink
inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-CStack committed Oct 10, 2023
1 parent 9f35d00 commit 3d12b74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 178 deletions.
170 changes: 0 additions & 170 deletions lib/src/models/input.dart

This file was deleted.

15 changes: 7 additions & 8 deletions lib/src/models/transaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ class Transaction {
throw FusionError("bad component prevout");
}

// TODO fix input.
final input = bitbox.Input(
/*
prevTxid: inp.prevTxid, // Make sure the types are matching
prevIndex: inp.prevIndex,
pubKey: inp.pubkey,
value: inp.amount.toHexString().toBigIntFromHex.toInt(),
*/
);
hash: Uint8List.fromList(inp.prevTxid),
index: inp.prevIndex,
sequence: 0xffffffff,
pubkeys: [Uint8List.fromList(inp.pubkey)],
value: inp.amount.toInt(),
);

tx.inputs.add(input);
inputIndices.add(i);
} else if (comp.hasOutput()) {
Expand Down

0 comments on commit 3d12b74

Please sign in to comment.