The function Laundrette::addToTheGang allows adding a member with address(0).
The function Laundrette::addToTheGang allows adding a member with address(0).
This means that the user associated with this address won't be able to withdraw funds and the state will hold data of a user with non-existent address - address(0).
However, GodFather can still take or move the funds.
Keeps track of user which address is non-existent - address(0).
Manual Review
Add check for address(0) inside the function Laundrette::addToTheGang and revert if such address is passed.
Add the following test case to test/LaundretteTest
Test by running the command: forge test --mt test_canAddAddressZero
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.