Skip to content

Custom Errors in require statements are caught as "unused" #790

Open
@alexroan

Description

Detector Title
Unused Custom Error

To Reproduce
Use a Custom Error with require statement. Example:

require(true, MyCustomError());

Expected behavior
The detector should not detect these instances

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions