The setDeadline function in the contract fails to update the deadlineSet state variable to true after the deadline is successfully set. This oversight allows repeated calls to setDeadline, which contradicts the intended behavior of the function.
The deadlineSet variable remains false after a successful call to setDeadline. As a result, the function can be called repeatedly, leading to inconsistent contract behavior and potential misuse.
Out Put
Breaks the intended logic of the contract by allowing multiple deadlines to be set.
Foundry and Manual review
Update the setDeadline function to include a statement setting the deadlineSet variable to true after successfully setting the deadline.
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.