Skip to content

Commit

Permalink
Merge 4e80927 into 293e224
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Oct 14, 2021
2 parents 293e224 + 4e80927 commit 37dd985
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/DrawCalculator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ contract DrawCalculator is IDrawCalculator, Ownable {

if ((_randomNumberThisPick & mask) != (_winningRandomNumber & mask)) {
// there are no more sequential matches since this comparison is not a match
return masksLength - numberOfMatches;
if (masksLength == numberOfMatches) {
return 0;
} else {
return masksLength - numberOfMatches;
}
}

// else there was a match
Expand Down

0 comments on commit 37dd985

Please sign in to comment.