The GivingThanks::donate function checks if a charity is verified by calling registry.isVerified(charity) as a requirement to make the donation. But due to an incorrect value assignment in registry, the contract will fail.
Since the address of CharityRegistry contract has not been assigned to the variable registry in the constructor, this verification function will not be available causing the contract to fail.
The donate function will not be able to verify any charity and all donations will fail.
Foundry, Remix
Ensure that the value of registry is correctly assigned in the constructor with the address of the CharityRegistry contract.
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.