Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Missing indexed Parameters in Events

Summary

In Solidity, the indexed keyword allows up to three parameters in an event to be included in the topics section of the log, making them searchable and filterable via off-chain tools like Etherscan, The Graph, and web3 libraries.

In your Egghuntgame.solThe following events do not make use of indexed parameters

event GameStarted(uint256 startTime, uint256 endTime);
event GameEnded(uint256 endTime);

Tools Used

Aderyn

Recommendations

Add indexed to parameters that are likely to be filtered or searched for, such as startTime, endTime, or both:

event GameStarted(uint256 indexed startTime, uint256 indexed endTime);
event GameEnded(uint256 indexed endTime);

Benefits:

  • Improves event queryability and off-chain indexing.

  • Better integration with analytics tools and explorers.

  • Enhanced developer and user experience when tracking game events.

Updates

Lead Judging Commences

m3dython Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Event Emission

Standard practice for clarifying important contract behaviors

Support

FAQs

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