Add JS fixes too
This commit is contained in:
parent
ad7577c4e2
commit
85e4512e08
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue