crytic / crytic/slither

Select compile framework for projects having both hardhat and foundry

Open
#1,414 0 comments 1 reaction 0 assignees View on GitHub
documentation enhancement
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the desired feature

I work on a project with both foundry and hardhat configs. When running `slither .` the compile platform defaults to hardhat while I wanted it to use `forge build`. There's no reference to how to switch the platform in this repo's wiki. After digging in the code, I found the option `--compile-force-framework` (`compile_force_framework`) and eventually saw it also in "crytic-compile" wiki. I believe some piece of documentation is missing about faundry and the presented case in particular.

Posting here so that it can serve other people:

- from cli
```
slither . --compile-force-framework=foundry
```

- from "slither.config.json"
```
{
...
"compile_force_framework": "foundry",
...
}
```

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.