GodFather may make the mistake of assigning weapons to addresses that are not part of the gang.
The function Laundrette::putGunsInTheSuspendedCeiling
assigns weapon to addresses but does not validate if its first argument - account
is part of the mafia.
Contract holds bad state for WeaponShelf::bank
.
Assigning weapons to people that are outside of the gang can be dangerous for the mafia.
Manual Review
Add if statement to Laundrette::putGunsInTheSuspendedCeiling
which checks if the address is part of the mafia and reverts if not:
Add the following method to LaundretteTest
Run the following command: forge test --mt test_canAssignWeaponToAddressThatsNotInGang
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.