Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Missing emit for Graduated __LevelOne.sol

Summary

The contract defines an event Graduated, but it is never emitted anywhere in the codebase. This limits transparency and makes it harder to track upgrades or student graduation on-chain.

Vulnerability Details

The following event is declared:

event Graduated(address indexed levelTwo);

However, the graduateAndUpgrade function — which logically represents the point of student graduation and upgrade — does not emit an event.

Impact

Makes auditing and monitoring harder, reducing overall transparency

Off-chain systems (indexers, dashboards, analytics) cannot detect when graduation occurs

Tools Used

Manual review

Recommendations

Emit the Graduated event inside graduateAndUpgrade() after a successful upgrade:

emit Graduated(_levelTwo);
Updates

Lead Judging Commences

yeahchibyke Lead Judge 15 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
yeahchibyke Lead Judge 15 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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