Skip to content

Commit 85e4512

Browse files
committed
Add JS fixes too
1 parent ad7577c commit 85e4512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psbt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ function hasSigs(neededSigs, partialSig, pubkeys) {
581581
.map(pkey => {
582582
const pubkey = ecpair_1.fromPublicKey(pkey, { compressed: true })
583583
.publicKey;
584-
return partialSig.filter(pSig => pSig.pubkey.equals(pubkey))[0];
584+
return partialSig.find(pSig => pSig.pubkey.equals(pubkey));
585585
})
586586
.filter(v => !!v);
587587
} else {

0 commit comments

Comments
 (0)