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

Scanning zksync projects with Slither #2638

Closed
0xGassin opened this issue Jan 19, 2025 · 0 comments
Closed

Scanning zksync projects with Slither #2638

0xGassin opened this issue Jan 19, 2025 · 0 comments

Comments

@0xGassin
Copy link

Hi, I'm working on a project that takes in smart contracts and scans them with slither. I usually pass in a hardhat or foundry project directly into slither and it usually works, however I encountered a specific type of hardhat project which incorporated matterlabs zksync, and for some reason hardhat zksync projects compile differently to regular hardhat projects so slither can't find the files it needs in the artifacts directory to run the scan. I was trying to explore some options on how I could work around this issue, for example to migrate the hardhat zksync project to a regular hardhat project structure, but I'm not sure if that would work because I'm assuming it would require the hardhat zksync mode. Another idea I had was to somehow find a way to generate the AST and pass that into slither. Any ideas? Perhaps there are other static analyzers that work on zksync projects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant