The 'PuppyRaffle::getActivePlayerIndex' function does not return an accurate value for the address in the first slot of the players array -> players[0].
Because getActivePlayerIndex returns 0 if the player is not found, it cannot accurately be known if a player is in slot 0 of the array or if the player has refunded and exited the raffle.
This test returns as true even though playerOne has refunded and exited the raffle.
[PASS] testGetActivePlayerIndexZero() (gas: 116564)
-Foundry
Return a different value if the player is not found in the array. For example, a very unlikely number.
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.