add derivationPath in toFusionOutput

This commit is contained in:
sneurlax 2023-09-22 11:45:16 -05:00
parent b0f0ea48e1
commit ecdb49d84c

View file

@ -430,7 +430,7 @@ extension FusionUTXO on UTXO {
); );
} }
/// Converts a Stack Wallet UTXO to a FusionDart Output... eventually. /// Converts a Stack Wallet UTXO to a FusionDart Output.
Future<fusion_output.Output> toFusionOutput() async { Future<fusion_output.Output> toFusionOutput() async {
if (address == null) { if (address == null) {
throw Exception("toFutionOutput Address is null"); throw Exception("toFutionOutput Address is null");
@ -442,8 +442,9 @@ extension FusionUTXO on UTXO {
return fusion_output.Output( return fusion_output.Output(
addr: fusion_address.Address( addr: fusion_address.Address(
addr: address!, addr: address!,
publicKey: addr.publicKey, // TODO fix public key. publicKey: addr.publicKey,
derivationPath: null, // TODO fix derivation path. derivationPath:
fusion_address.DerivationPath(addr.derivationPath?.value ?? ""),
), ),
value: value, value: value,
); );