GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Use events to log state changes, providing a reliable and efficient way to track updates and enhance transparency for off-chain monitoring.

Description

Events provide a reliable way for off-chain systems and decentralized applications (DApps) to monitor and respond to contract updates without the need for costly on-chain polling. It is recommended to add events to the code to ensure that important contract actions can be easily tracked and responded to by external systems.

Impact

If the service has a front end, the client will be unaware of changes because the contract’s state is not indexed.

Recommended mitigation

Incorporating events into the smart contracts improves their integration with off-chain systems, allowing for efficient monitoring and tracking of state changes without requiring constant on-chain polling.

CharityRegistry.sol

event CharityRegistered(address indexed charity);
event CharityVerified(address indexed charity);

GivingThanks.sol

event DonationMade(address indexed donor, address indexed charity, uint256 amount, uint256 tokenId);
event RegistryUpdated(address indexed oldRegistry, address indexed newRegistry);
Updates

Lead Judging Commences

n0kto Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.