Skip to content

Commit ad7577c

Browse files
junderwd-yokoi
andauthored
Update ts_src/psbt.ts
Co-Authored-By: d-yokoi <[email protected]>
1 parent e10324f commit ad7577c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts_src/psbt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ function hasSigs(
765765
.map(pkey => {
766766
const pubkey = ecPairFromPublicKey(pkey, { compressed: true })
767767
.publicKey;
768-
return partialSig.filter(pSig => pSig.pubkey.equals(pubkey))[0];
768+
return partialSig.find(pSig => pSig.pubkey.equals(pubkey));
769769
})
770770
.filter(v => !!v);
771771
} else {

0 commit comments

Comments
 (0)