The GivingThanks constructor does not use the _registry parameter to assign it as the value of the variable registry. Instead, it incorrectly assigns msg.sender to registry, which results in the variable not pointing to the CharityRegistry contract.
The _registry parameter is passed to the constructor but remains unused. Instead of using this parameter, msg.sender is incorrectly assigned to registry. This causes registry to point to an incorrect address.
The variable registry does not point to the correct contract, causing the main logic of the contract to fail.
Foundry, Remix
Use the _registry parameter in the constructor to properly be assigned as the value of the variable registry.
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.