Skip to content

Commit

Permalink
fix: typo in psbt.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dogebonker authored Jun 20, 2024
1 parent e146034 commit d37ad26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function PSBTKeyMap<T extends PSBTKeyMap>(psbtEnum: T): P.CoderType<PSBTKeyMapKe

export const PSBTInputCoder = P.validate(PSBTKeyMap(PSBTInput), (i) => {
if (i.finalScriptWitness && !i.finalScriptWitness.length)
throw new Error('validateInput: wmpty finalScriptWitness');
throw new Error('validateInput: empty finalScriptWitness');
//if (i.finalScriptSig && !i.finalScriptSig.length) throw new Error('validateInput: empty finalScriptSig');
if (i.partialSig && !i.partialSig.length) throw new Error('Empty partialSig');
if (i.partialSig) for (const [k] of i.partialSig) validatePubkey(k, PubT.ecdsa);
Expand Down

0 comments on commit d37ad26

Please sign in to comment.