Skip to content

Commit

Permalink
fix(opCheckMultiSig): fix potential undefined public key
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed Aug 23, 2019
1 parent 64464b8 commit dda926a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/auth/instruction-sets/common/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export const opCheckMultiSig = <
let remainingPublicKeys = publicKeys.length; // tslint:disable-line:no-let
while (
remainingSignatures > 0 &&
remainingPublicKeys > 0 &&
approvingPublicKeys + remainingPublicKeys >=
remainingSignatures &&
approvingPublicKeys !== requiredApprovingPublicKeys
Expand Down

0 comments on commit dda926a

Please sign in to comment.