Hawk High

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

[L-2] Undefined Error in `LevelOne::expel()`

Description

The expel() function contains a bare revert() with no error message or error selector

Impact

Debugging becomes difficult for end-users and tools.

Tools Used

Manual review

Recommendations

Define a new error:

error HH__NotInSession();

Use it inside LevelOnel::expel()

if (!inSession) {
revert HH__NotInSession();
}
Updates

Lead Judging Commences

yeahchibyke Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!