Skip to content

[A02-1] [LOW] Empty misnamed contract ErrFLow in ErrFlow.sol #272

@thedavidmeister

Description

@thedavidmeister

Description

src/error/ErrFlow.sol:21 declares an empty contract:

contract ErrFLow {}

It is:

  • A typo (ErrFLow vs the file name ErrFlow.sol).
  • Empty — has no fields, functions, modifiers, or inheritance.
  • Unreferenced anywhere in src/ or test/.

Compiling this file produces an empty contract artifact whose only purpose is to confuse readers into thinking errors must be inherited from it. Free-floating errors (the rest of the file) do not require a host contract and the surrounding declarations confirm none is intended.

Location

src/error/ErrFlow.sol:21

Proposed fix

Remove the empty contract:

-contract ErrFLow {}
-
 /// Thrown when burner of tokens is not the owner of tokens.
 error BurnerNotOwner();

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditAudit findinglowSeverity: lowpass1Audit Pass 1: Security

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions