The method Laundrette::takeGuns
has useless modifier onlyRole("gangmember")
because it already has isAuthorizedOrRevert(account)
and guns are given only to gang members.
Since the modifier isAuthorizedOrRevert(account)
modifier checks if the user is the one who is meant to take guns given to him/herand also checks if the transaction sender is GodFather, then it's useless to have
onlyRole("gangmember")` modifier for the method.
Unnecessary code.
Manual Review
Remove the onlyRole("gangmember") for Laundrette::addToTheGang
.
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.