Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crytic_compile.platform.exceptions.InvalidCompilation: Invalid solc compilation Error: Source "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol" not found: File not found. Searched the following locations: "".[Bug-Candidate]: #1698

Closed
joedakwa opened this issue Feb 27, 2023 · 5 comments
Labels
bug-candidate Bugs reports that are not yet confirmed

Comments

@joedakwa
Copy link

Describe the issue:

Hi, i am trying to run this command from my directory:

when i run slither CTTXForwarder.sol --solc-remaps @openzeppelin/contracts/=node_modules/@openzeppelin/contracts/

I get this error

crytic_compile.platform.exceptions.InvalidCompilation: Invalid solc compilation Error: Source "node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol" not found: File not found. Searched the following locations: "".[Bug-Candidate]:

In my remappings file, i have this:

{
    "remappings": [ 
        "@openzeppelin/contracts/security/=node_modules/@openzeppelin/contracts/security/",
        "@openzeppelin/contracts/access/=node_modules/@openzeppelin/contracts/access/",
        "@openzeppelin/contracts/token/=node_modules/@openzeppelin/contracts/token/",
        "@openzeppelin/contracts/utils/cryptography/=node_modules/@openzeppelin/contracts/utils/cryptography/"
    ]
}

Can someone assist me with this?

When i run Slither . this works fine. But then i want to be able to run

Slither CTTXForwarder -- print call-graph

for example.

Code example to reproduce the issue:

Slither CTTXForwarder -- print call-graph

Version:

0.9.2

Relevant log output:

No response

@joedakwa joedakwa added the bug-candidate Bugs reports that are not yet confirmed label Feb 27, 2023
@0xalpharush
Copy link
Contributor

This is a current limitation of slither that doesn't have a workaround at the moment. We plan to add the ability to filter the output of slither by contract #759 like slither . --filter-contract CTTXForwarder --print call-graph.

@joedakwa
Copy link
Author

joedakwa commented Mar 9, 2023

This is a current limitation of slither that doesn't have a workaround at the moment. We plan to add the ability to filter the output of slither by contract #759 like slither . --filter-contract CTTXForwarder --print call-graph.

Right i see thanks.

One more question; am i able to run slither against specific functions in my contract? If so, how?

@0xalpharush
Copy link
Contributor

@joedakwa No but that is within the scope of improvements planned in #759

@joedakwa
Copy link
Author

@joedakwa No but that is within the scope of improvements planned in #759

right ok cool should be very helpful when that is released, as can run --print-graph on specific functions :-)

@0xalpharush
Copy link
Contributor

Closing this but it's being tracked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-candidate Bugs reports that are not yet confirmed
Projects
None yet
Development

No branches or pull requests

2 participants