Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

No Event Logging On Key Functions in the ThePredicter.sol

Summary

Emitting events can facilitate tracking and enable external systems to react appropriately. This improves transparency and allows for real-time monitoring and response to critical actions within the contract.

Vulnerability Details

Most of the key functions, such as register(), cancelRegistration(), approvePlayer(), and makePrediction(), lack event emissions. Adding events to these functions could significantly aid in tracking actions and reacting externally, enhancing transparency and monitoring capabilities.

Impact

  1. Difficult Debugging: Events provide a log of actions taken within the contract, which is crucial for debugging and auditing. The absence of events can complicate troubleshooting and identifying issues.

  2. Limited External Reactions: External systems and dApps often rely on events to trigger actions or updates. Without events, these systems cannot react to changes in the contract, reducing interactivity and responsiveness.

Tools Used

Manual

Recommendations

Add events to key functions on the contracts.

Updates

Lead Judging Commences

NightHawK Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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