function
graduateAndUpgrade(address _levelTwo, bytes memory) public onlyPrincipal {
...
}
Initial State: Students are enrolled and have completed the session.
Step 1: The principal calls graduateAndUpgrade.
Outcome: The contract upgrades, but no students are marked as graduated.
Implications: Students cannot progress to the next level, defeating the purpose of the school system.
How they are affected: Students cannot graduate or move to the next level.
function graduate(address _student) public onlyPrincipal {
require(studentScore[_student] >= cutOffScore, "Score below cutoff");
isStudent[_student] = false;
emit Graduated(_student);
}
All students are graduated when the graduation function is called as the cut-off criteria is not applied.
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.