Description
The updateRegistry function in the GivingThanks contract allows the admin to update the address of the CharityRegistry. However, there is currently no event emitted to log this change. Emitting an event is important for tracking changes to the registry address, providing transparency and accountability in the contract's operations.
Code Snippet
Impact
Lack of Transparency: Without an event, there is no way for external systems or users to track when the registry address is updated, making it difficult to audit or verify changes to the contract's state.
Reduced Interoperability: Other contracts or decentralized applications (dApps) that rely on registry updates will not be able to react to or display this information, limiting the functionality of the ecosystem.
Recommendation
Add an event declaration for registry updates and emit this event within the updateRegistry function after successfully updating the registry address. This will provide a clear log of registry changes on the blockchain.
Code Snippet
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.