Skip to content
Discussion options

You must be logged in to vote

When you're trying to run Slither on a single file, it doesn't know which Solidity version should be used. You can manually specify it in foundry.toml file in the root of the project like so and it'll run:

foundry.toml

[profile.default]
src = "src"
out = "out"
libs = ["lib"]
+ solc = '0.7.6'

remappings = ['@openzeppelin/contracts=lib/openzeppelin-contracts/contracts']

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@EngrPips
Comment options

@Vincent71399
Comment options

@EngrPips
Comment options

Answer selected by Vincent71399
Comment options

You must be logged in to vote
1 reply
@EngrPips
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants