The RapBattle smart contract fails to update the battlesWon
attribute in RapperStats
after a battle concludes, missing an opportunity to accurately reflect a rapper's achievements within the game's ecosystem.
This issue arises because the RapBattle.sol
does not have direct access to modify the RapperStats
which is in OneShot.sol
. The stats can only be modified by Streets.sol
contract.
LOW
This does not directly affect the game logic anyhow
Manual review
Establish a Mechanism for Updating RapperStats : Give RapBattle
access to RapperStats
by adding a function in OneShot.sol
to only update battlesWon
.
Code in OneShot.sol
:
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.