The property battlesWon
is never updated
The function RapBattle::_battle
makes 2 NFTs battle and get a winner from it
However, the property that shows how many battles an NFT has won is never updated! So always remains 0!
People can not know how many battles the Rapper NFTs won.
Manual Review
Update the value of battlesWon
inside the if-else clause where the rewards are transfered. However, OneShot::updateRapperStats
has the modifier onlyStreetContract
that reverts any call from RapBattle
or any other contract that is not Streets
, so it might be useful to add a function that only updates the battle won with a modifier that only allows the call from RapBattle
.
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.