Just using delete keyword does not remove the element at given index, it just makes the value 0.
Beneficiaries will get less rewards when withdrawInheritedFunds
will be called, because the amount that every beneficiary gets depends on the beneficiaries
array length and it does not reduce when removeBeneficiary
is called.
Manual Review
Replace old removeBeneficiary
with this new one
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.