-
Notifications
You must be signed in to change notification settings - Fork 84
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
FileNotFoundError: [Errno 2] No such file or directory: 'artifacts/build-info' #236
Comments
Crytic-compile looks for build artifacts in
|
Good call, that worked, thanks @0xalpharush . Another quick question. I am now getting after correcting the build-info location in the command above: echidna-test: invalid character at offset: 630
CallStack (from HasCallStack):
error, called at src/EVM/Solidity.hs:518:13 in hevm-0.48.0-3yc97MaS5pIDvLZRLvuryr:EVM.Solidity From what I see, this is associated with hevm. Is this coming from one of the json files located in |
I'm thinking it could be something in the contracts that the JSON structure is having a problem parsing @0xalpharush. I don't know if crytic-compile or echidna is returning the whole error stack trace or not. |
Can you run |
@Jovonni I think you can solve your JSON issue doing:
Then recompile and rerun echidna as you did before. |
I am using For some reason @ggrieco-tob Error HH308: Unrecognized positional argument .
For more info go to https://hardhat.org/HH308 or run Hardhat with --show-stack-traces However, just running Even after removing the crytic-export directory, I am still getting: echidna-test: invalid character at offset: 630
CallStack (from HasCallStack):
error, called at src/EVM/Solidity.hs:518:13 in hevm-0.48.0-3yc97MaS5pIDvLZRLvuryr:EVM.Solidity I also tried using the docker container, and same issue. |
I can post this in the Echidna, but I have issues with using Echidna with contracts that have imports, that are not local. For example, something from @openzepplin, etc Another issue I keep seeing is the: echidna-test: No tests found in ABI I am wondering if the I don't see a level of consistency between different projects using the same frameworks (hardhat, truffle). I am wondering how this could be improved. |
Let's fix this first:
Are you using Docker? |
Yes, I have been using both. Just to try to get one working. @ggrieco-tob |
Hi! Any other solution? I'm also getting the same error and don't know what to do |
Was this fixed @ggrieco-tob |
I don't know. @elopez can you take a quick look to this? |
yeah, have you made methods that start with |
The original issue here should no longer be a problem starting with crytic-compile 0.3.0, now that we have auto-detection of the hardhat artifact directory, so I'll close this. If you encounter any other problems feel free to post on discussions or create a new issue. |
Is this following error due to my version of crytic-compile?
Command
This is in the root directory btw, targeting a contract inside the /contracts/ folder
This is also posted as a comment here:
#164 (comment)
The text was updated successfully, but these errors were encountered: