In the _battle
function the battlesWon
in RapperStats
struct is never updated.
If battlesWon
is never used or updated it is better to be removed from the struct as it costs unnecessary gas. Or it should be implemented in the _battle
function and in the calculation of the strength of the Rapper.
Low as battlesWon
is not used anywhere.
Manual review
After a battle increment the battlesWon
variable for the winner.
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.