crytic / crytic/slither

Most derived contracts: Filter Test/Mock contracts

Open
#770 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

`slither.contracts_derived` can return Mock / Test contracts, instead of returning the expected derived contracts.

We need to filter `Mock`/`Test` and also return contracts that are only inherited by tests

https://github.com/crytic/slither/blob/c0c581b3ba830b6ce8dc3f4be82592a7a42e9752/slither/core/slither_core.py#L173-L177

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.