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

Should use enum

Summary

Where enum should normally be used, a peculiar notation is used.

Vulnerability Details

The following notations are not common.

uint8 private constant DISALLOWED = 0;
uint8 private constant ALLOWED = 1;
uint8 private constant VOTED = 2;

The following are common

enum VoterState {
DISALLOWED,
ALLOWED,
VOTED
}

Impact

Unusual notation reduces readability

Tools Used

Manual

Recommendations

Use enum

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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