reviewCount mapping value is not updated in the giveReview() function after review has been given. The value is supposed to be increased by 1 after every successful review weekly and should be 4 by the end of the session but the value is not recorded in the mapping reviewCountand therefore all students' reviewcount remains 0.
As the Value of reviewCountis not updated after giving review, it remains 0 and the system upgrade cannot occur because students must have their 4 reviews, one for each week, before System upgrade occur therefore breaking the protocol's invariant.
The system upgrade cannot happen as the reviewCountis not increased and students must have 4 reviews before the upgrade can occur.
The test below passes and proves that the review count is not updated for the students after the teacher has given them a review. it remains 0 before and after the review therefore breaking our invariant.
Manual review
Increase the reviewCountof each student that is given a review by adding the lines of code in the giveReview()function as shown below;
`reviewCount` for students is not updated after each review session
`reviewCount` for students is not updated after each review session
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.