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

Lack of Event Emission for State-Changing Functions

Summary

vent emission in smart contracts is crucial for tracking state changes and providing transparency. Events allow for easier debugging, monitoring, and verification of contract activities by off-chain applications. The contracts ThePredicter.sol and ScoreBoard.sol lack event emissions for critical state-changing functions, which undermines the ability to audit and track the system's behavior accurately.

Affected Functions

ThePredicter.sol

  • register()

  • cancelRegistration()

  • approvePlayer()

  • makePrediction()

  • withdrawPredictionFees()

  • withdraw()

ScoreBoard.sol

  • setResult()

  • confirmPredictionPayment()

  • setPrediction()

  • clearPredictionsCount()

Recommendations

The lack of event emission in key functions of ThePredicter.sol and ScoreBoard.sol contracts significantly impacts the ability to track and audit the contract's operations. By incorporating appropriate events, transparency and accountability can be greatly improved, ensuring all actions within the contracts are visible and verifiable.

Updates

Lead Judging Commences

NightHawK Lead Judge 12 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.