Skip to content

Commit

Permalink
Fixed spending non-witness main UTXO
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Oct 3, 2023
1 parent ab4a3c6 commit 14c9fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/src/redemption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export async function assembleRedemptionTransaction(
psbt.addInput({
hash: mainUtxo.transactionHash.reverse().toBuffer(),
index: mainUtxo.outputIndex,
nonWitnessUtxo: Buffer.from(mainUtxo.transactionHex),
nonWitnessUtxo: Buffer.from(mainUtxo.transactionHex, "hex"),
})
} else if (isP2WPKHScript(previousOutputScript)) {
psbt.addInput({
Expand Down

0 comments on commit 14c9fc6

Please sign in to comment.