In the contract ReseedField, Function init () will fail to Re-initialize the field as inner loop wrongly increments outer loop variable resulting in wrong calculation of calculatedTotalPods
and eventually reverting the transaction.
Here in L11 - Incrementing i
inside inner loop will cause updating states and incrementing calculatedTotalPods
with pods corresponding to only first plot of each account and after iterating through all accounts it will break out of loops with incorrect issuing of plots and wrong calculatedTotalPods
value which will not be equal to given totalPods
.
Field Re-initialization and re-issuing of plots to existing farmers will fail.
Manual review
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.