An incorrect player index is being returned, which could lead to unexpected behavior or results. It is crucial to investigate and resolve this issue to ensure the accuracy and integrity of the system's operations.
function testGetIncorrectActivePlayerIndex() public playersEntered {
address invalidPlayer = makeAddr("INVALID_PLAYER");
uint256 playerOneIndex = puppyRaffle.getActivePlayerIndex(playerOne);
uint256 playerTwoIndex = puppyRaffle.getActivePlayerIndex(playerTwo);
uint256 invalidPlayerIndex = puppyRaffle.getActivePlayerIndex(
invalidPlayer
);
assert(playerTwoIndex == 1);
assert(playerOneIndex == invalidPlayerIndex);
}
Foundry
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.