"fix" toFusion methods

this isn't a fix really, more TODO
This commit is contained in:
Josh Babb 2023-09-14 16:05:54 -05:00
parent 47fd03817a
commit ba826d28ed

View file

@ -246,7 +246,7 @@ class Transaction {
.map((e) => fusion_input.Input( .map((e) => fusion_input.Input(
prevTxid: utf8.encode(e.txid), prevTxid: utf8.encode(e.txid),
prevIndex: e.vout, prevIndex: e.vout,
pubKey: utf8.encode(e.witness), // TODO fix pubKey: utf8.encode(e.witness ?? ""), // TODO fix
amount: 0, // TODO fix amount: 0, // TODO fix
)) ))
.toList(); .toList();
@ -255,8 +255,8 @@ class Transaction {
.map((e) => fusion_output.Output( .map((e) => fusion_output.Output(
addr: fusion_address.Address( addr: fusion_address.Address(
addr: e.scriptPubKeyAddress, addr: e.scriptPubKeyAddress,
publicKey: utf8.encode(e.scriptPubKey), publicKey: utf8.encode(e.scriptPubKey ?? ""), // TODO fix
derivationPath: fusion_address.DerivationPath(), // TODO fix derivationPath: fusion_address.DerivationPath("m/49'/0'/0'/0/0"), // TODO fix
), ),
value: e.value, value: e.value,
)) ))