diff --git a/modules/abstract-lightning/src/lightning/parseWithdrawPsbt.ts b/modules/abstract-lightning/src/lightning/parseWithdrawPsbt.ts index bfbbe75192..95314839ec 100644 --- a/modules/abstract-lightning/src/lightning/parseWithdrawPsbt.ts +++ b/modules/abstract-lightning/src/lightning/parseWithdrawPsbt.ts @@ -26,7 +26,7 @@ function parseDerivationPath(derivationPath: string): { return { purpose, change, addressIndex }; } -function parsePsbtOutputs(psbt: Psbt, network: utxolib.Network): WithdrawBaseOutputUTXO[] { +export function parsePsbtOutputs(psbt: Psbt, network: utxolib.Network): WithdrawBaseOutputUTXO[] { const parsedOutputs: WithdrawBaseOutputUTXO[] = []; let bip32Derivation: Bip32Derivation | undefined; @@ -58,7 +58,7 @@ function parsePsbtOutputs(psbt: Psbt, network: utxolib.Network): WithdrawBaseOut return parsedOutputs; } -function verifyChangeAddress( +export function verifyChangeAddress( output: WithdrawBaseOutputUTXO, accounts: WatchOnlyAccount[], network: utxolib.Network