0

What is the whole and correct Slither command to analyze a smart contract. According to the Slither guide (here) I tried this:

slither path/contract.sol

But this is the result:

Traceback (most recent call last):
  File "/home/ethsec/.local/lib/python3.6/site-packages/slither/__main__.py", line 744, in main_impl
    ) = process_all(filename, args, detector_classes, printer_classes)
  File "/home/ethsec/.local/lib/python3.6/site-packages/slither/__main__.py", line 76, in process_all
    compilations = compile_all(target, **vars(args))
  File "/home/ethsec/.local/lib/python3.6/site-packages/crytic_compile/crytic_compile.py", line 660, in compile_all
    raise ValueError(f"Unresolved target: {str(target)}")
ValueError: Unresolved target: F:/ImnCrypt/Implementation/Develop/PublicKey.sol

I think it needs a correct and resolved target that I don't know what it is. What command I should try?

2
  • Solved or need help?? Commented Jan 19, 2023 at 12:37
  • @SolidityLearner Solved, Thanks.
    – Alireza
    Commented Jan 22, 2023 at 13:54

1 Answer 1

1

You should try

slither .

in the project file. Slither usually find its way

1
  • If my project is a Truffle project, do I try it in the contract folder or the Truffle project folder?
    – Alireza
    Commented Nov 8, 2022 at 19:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.