0

I have a Foundry project, and I prefer to not install Hardhat. Would it be possible to run Slither as specified in the Foundry Book?

Currently, if I run at the root folder of my Foundry project:

slither .

I get the error:

$ slither .                                                                                                                                              
Problem executing hardhat: npm WARN exec The following package was not found and will be installed: hardhat                                                                                                
Error HH12: Trying to use a non-local installation of Hardhat, which is not supported.                                                                                                                     
Please install Hardhat locally using npm or Yarn, and try again.                                                                                                                                           
HardhatError: HH12: Trying to use a non-local installation of Hardhat, which is not supported.                                                                                                             
Please install Hardhat locally using npm or Yarn, and try again.

I am running Slither 0.9.2.

Also, I tried:

slither . --hardhat-ignore-compile
gagiuntoli
  • 475
  • 5
  • 13

1 Answers1

0

This option made the trick:

slither . --compile-force-framework foundry
gagiuntoli
  • 475
  • 5
  • 13