Open c4-bot-2 opened 7 months ago
Mitigation of H-06: Mitigated
H-06: FighterFarm:: reroll won't work for nft id greator than 255 due to input limited to uint8
The issue was the limit imposed by uint8 as the type of tokenId in FighterFarm.reRoll().
uint8
tokenId
FighterFarm.reRoll()
uint8 tokenId has been replaced by uint256 tokenId.
uint8 tokenId
uint256 tokenId
jhsagd76 marked the issue as satisfactory
Lines of code
Vulnerability details
Mitigation of H-06: Mitigated
Mitigated issue
H-06: FighterFarm:: reroll won't work for nft id greator than 255 due to input limited to uint8
The issue was the limit imposed by
uint8
as the type oftokenId
inFighterFarm.reRoll()
.Mitigation review - Mitigated
uint8 tokenId
has been replaced byuint256 tokenId
.