The GivingThanks::constructor
currently sets registry=CharityRegistry(msg.sender);
instead of using _registry
i.e. initialized as a parameter in the constructor.
This makes the register
variable inaccurate or unusable for verifying charities and might cause unexpected behavior.
This test will verify if the registry correctly points to the intended CharityRegistry address.
Foundry
Update the GivingThanks::constructor
to correctly initialize the registry
with the _registry
parameter in place of msg.sender
Likelyhood: High, the parameter is not well used and won't be set. Impact: Low, can be changed with the setter and no one will be able to donate to malicious charity.
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.