crytic / crytic/slither

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

Open
#2,838 0 comments 0 reactions 0 assignees View on GitHub
bug-candidate
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### 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:

```shell
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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.