Skip to content

Commit 83c85ea

Browse files
OttoAllmendingerllm-git
andcommitted
feat(utxo-lib): add serialized finalized PSBT to test fixtures
Include finalized PSBT in base64 format in test fixtures when available to help with debugging and verification. Issue: BTC-2742 Co-authored-by: llm-git <[email protected]>
1 parent a5485ac commit 83c85ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/utxo-lib/test/bitgo/psbt/SignVerifyPsbtAndTx.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ function runPsbt(
156156
const fixture = {
157157
walletKeys: rootWalletKeys.triple.map((xpub) => xpub.toBase58()),
158158
psbtBase64: psbt.toBase64(),
159+
psbtBase64Finalized: finalizedPsbt ? finalizedPsbt.toBase64() : null,
159160
inputs: psbt.txInputs.map((input) => toFixture(input)),
160161
psbtInputs: getFixturePsbtInputs(psbt, inputs),
161162
psbtInputsFinalized: finalizedPsbt ? getFixturePsbtInputs(finalizedPsbt, inputs) : null,

0 commit comments

Comments
 (0)