the function should not return 0 if no player is found, cause it's the index of the first player
index 0 is the first element of the players array, not a falsy return
if the function is called and a player doesn't exist, it will return the 1st player, instead of saying that the player doesn't exist
hardhat
the function should revert tx or return false for example and then revert. But the much better way is to use a mapping for players, it would make thing much more cleaner and cheaper and better in all senses
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.