Due to this less than check, even when random number is equal to eggFindThreshold, NFT will not be minted.
Take a look at this comment, which says Default is a 20% chance
, meaning there is a chance of upto 20% and not less than 20%.
User not being able to mint NFT, even when he meets the threshold.
Make the following change in this line
Alice calls EggHuntGame::searchForEgg
.
random
comes to 20.
NFT will not be minted because random
is not less than eggFindThreshold
(which is 20 by default)
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.