Hawk High

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

[M-4] graduate() function in `LevelTwo.sol` contract is empty

Description:

The graduate() function is currently implemented as an empty function body. While this may be a placeholder, it introduces ambiguity and potential future abuse, especially in upgradeable contracts where empty functions could later be misused if not tightly controlled.

Impact

Users may waste gas calling this function. More critically, if the function is upgraded in the future without access control, it could be abused by any caller.

Tools Used

Chatgpt
Manual review

Recommendations

Either implement its intended logic or remove it until necessary. If kept, restrict access using onlyPrincipal and include documentation for its purpose.

Updates

Lead Judging Commences

yeahchibyke Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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