To find if a User has already registered, the following condition is looked at : playersStatus[msg.sender] == Status.Pending
It means that if the User is already Approved
, they can register again.
1/ Loss of funds for the User.
2/ Less 'real' Players can be added because User takes a slot in players[]
.
Add this Getter in ThePredicter.sol
:
Add this test at the end of the test file and run it :
forge test --mt test_cannotRegisterIfAlreadyApproved
Update the condition in ThePredicter.register()
to also revert if a player is already approved :
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.