Add JS fixes too

This commit is contained in:
junderw 2019-12-09 14:54:22 +09:00
parent ad7577c4e2
commit 85e4512e08
No known key found for this signature in database
GPG key ID: B256185D3A971908

View file

@ -581,7 +581,7 @@ function hasSigs(neededSigs, partialSig, pubkeys) {
.map(pkey => {
const pubkey = ecpair_1.fromPublicKey(pkey, { compressed: true })
.publicKey;
return partialSig.filter(pSig => pSig.pubkey.equals(pubkey))[0];
return partialSig.find(pSig => pSig.pubkey.equals(pubkey));
})
.filter(v => !!v);
} else {