The GameState.Revealed
enum value is defined but never used throughout the contract. All state transitions go directly from Committed
to Finished
or Cancelled
, bypassing any intermediate Revealed
state.
Including unused enum values can cause confusion for auditors, developers, and maintainers. It implies a possible missing logic branch or incomplete feature, even if no functional issue exists today.
Reduces code clarity
May mislead future maintainers into assuming intermediate logic exists
Manual code review
Remove the Revealed
enum value from GameState
if it's not part of the intended logic:
If a reveal-specific state is planned, consider implementing the missing state transition clearly to match this intent.
Code suggestions or observations that do not pose a direct security risk.
Code suggestions or observations that do not pose a direct security risk.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.