Static Analyzers
Slither
To test your project using slither, here is a sample slither.config.json
:
{
"filter_paths": "lib",
"solc_remaps": [
"ds-test/=lib/ds-test/src/",
"forge-std/=lib/forge-std/src/"
]
}
Note, you need to update solc
used by Slither to the same version used by Forge with solc-select
:
pip3 install slither-analyzer
pip3 install solc-select
solc-select install 0.8.13
solc-select use 0.8.13
slither src/Contract.sol
See the slither wiki for more information.
Mythril
To test your project using mythril, here is a sample mythril.config.json
:
{
"remappings": [
"ds-test/=lib/ds-test/src/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
}
}
See the mythril docs for more information.