The Laundrette::withdrawMoney
function can only be called by those with the GangMember
role only then is checks if the msg.sender
is same as the account or godFather
so if godFather
is not given the gangMember
role during deployment then he cannot use Laundrette::withdrawMoney
If godFather
is not given the gangMember
role during deployment then he cannot use Laundrette::withdrawMoney
The Laundrette::withdrawMoney
checks for gangmember
role first
In the Deployer.s.sol
's Deployer::deploy
function add kernel.grantRole(Role.wrap("gangmember"), godFather);
which will give the godFather
the GangMember
role right from the beginning.
Another work around would be for the godFather
to change the kernel.admin()
to himself and then grant himself the role GangMember
and change the admin back to Laundrette
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.