Browse Source

Add JS fixes too

psbt-tx-getters
junderw 5 years ago
parent
commit
85e4512e08
No known key found for this signature in database GPG Key ID: B256185D3A971908
  1. 2
      src/psbt.js

2
src/psbt.js

@ -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…
Cancel
Save