-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Bug-Candidate]: Parsing error when using Medusa corpus #28
Comments
Hey @nican0r, thanks for opening an issue! The parsing failure you're seeing is due to Medusa 0.1.3 deprecating one of the fields from the corpus call sequences, so the tool tries to parse a field that doesn't exist. I've included a fix in this branch, you can install the branch by cloning it and running We're working on refactoring the Medusa call sequence parsing and will include a fix for this along with a couple of other issues in the next release. For Echidna it should work as expected, but the tool will only create unit tests for failing properties. Is the property failing for Echidna? The echidna corpus included in the repro repo doesn't seem to include failing sequences |
Hey @tuturu-tech, appreciate the quick response. Will try out the fix for medusa. You were right about Echidna not failing, it was failing without any calls being made since the default value of I hadn't been paying attention to the message in the Echidna output that was saying this. After changing the default value of This makes me wonder if Medusa and Echidna treat checking properties after a contract is deployed differently since the Medusa run ignored the initial state and started trying call sequences whereas the Echidna run failed on the initial state. Is this described in the documentation somewhere? |
Describe the issue:
I'm getting the following parsing error when trying to run the tool on a corpus from a Medusa run
and the Foundry test it creates just contains the setup function for the target contract
When using an Echidna corpus it gives no parsing error but creates the same Foundry test
I'm unsure of whether this is due to a misconfiguration on my part or an actual bug in the tool.
Code example to reproduce the issue:
This repo is the one on which the issue appeared, it uses the default Foundry template and the only thing that's been added is an invariant in the
FuzzCounter
contract: https://github.com/nican0r/fuzz-utils-reproThe
FuzzCounter
contract also includes the commands I used for running the tool along with the command I used for running Echidna. Please lmk if there's anything else I can add that might help.Version:
0.0.1
Relevant log output:
The text was updated successfully, but these errors were encountered: