The addToTheGang function in the Laundrette contract has two conflicting modifiers, onlyRole and isGodFather, which prevent it from functioning as intended.
The onlyRole modifier requires msg.sender to have the gangmember role, while the isGodFather modifier requires msg.sender to be the godFather. Since the godFather role cannot gain the gangmember role using the addToTheGang function, a single user cannot satisfy both modifiers simultaneously. Consequently, it is impossible to execute the addToTheGang function as designed.
No one can add new members to the gang, effectively breaking the functionality of the addToTheGang function.
Manual Reading, Foundry Framework.
Use a combined hasRole modifier to check if msg.sender has either the gangmember or godFathe role.
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.