Eggstravaganza

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

Missing EggFound event declaration

Summary

In the searchForEgg() function, the contract emits an event called EggFound:

emit EggFound(msg.sender, eggCounter, eggsFound[msg.sender]);

However, the EggFound event is not declared anywhere in the contract, which will result in a compilation error.

Vulnerability Details

Impact

Compilation error due to the missing event declaration.

Tools Used

Recommendations

add event declaration

emit EggFound(msg.sender, eggCounter, eggsFound[msg.sender]);
Updates

Lead Judging Commences

m3dython Lead Judge 4 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.