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

Event is missing `indexed` fields

Summary

Event is missing indexed fields

Vulnerability Details

Index event fields make the field more quickly accessible to off-chain tools that parse events. However, note that each index field costs extra gas during emission, so it's not necessarily best to index the maximum allowed per event (three fields). Each event should use three indexed fields if there are three or more fields, and gas usage is not particularly of concern for the events in question. If there are fewer than three fields, all of the fields should be indexed.

Impact

N/A

Tools Used

aderyn

Recommendations

Add indexed keyword on events

...
-93 event CheckedOnce(address person, Status status);
-94 event CheckedTwice(address person, Status status);
+93 event CheckedOnce(address indexed person, Status indexed status);
+94 event CheckedTwice(address indexed person, Status indexed status);
...
Updates

Lead Judging Commences

inallhonesty Lead Judge over 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.