Skip to content

[Bug-Candidate]: Slither is unable to locate the Modifier referenced in the IdentifierPath format. #2838

@lum7na

Description

@lum7na

Describe the issue:

Slither is unable to locate the Modifier referenced in the IdentifierPath format.

Code example to reproduce the issue:

contract A {
    modifier m() virtual {
        _;
    }
}

contract C is A {
    modifier m() override {
        _;
    }

    function f() public A.m returns (uint) {}
}

Version:

0.11.3

Relevant log output:

ERROR:ContractSolcParsing:Missing function Variable not found: A.m (context C a.sol#7-13 (1 - 2))
INFO:Slither:a.sol analyzed (2 contracts with 100 detectors), 0 result(s) found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-candidateBugs reports that are not yet confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions