A player can change the prediction of other players.
The ThePredicter::makePrediction
function enables players to make predictions on the outcome of the matches and uses msg.sender
to determine the player, the ThePredicter::setPrediction
function lets players change their prediction and has a player
parameter which is the address of the player to change prediction for.
Add the code below to the test file
Any player can change the prediction of other players by calling the ThePredicter::setPrediction
function with the desired players address as the Player
parameter.
Manual Analysis
Add checks to ensure the player's address is the msg.sender
address.
setPrediction has no access control and allows manipulation to Players' predictions.
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.