Skip to content

Slither results caching is re-used even if compilation target changes #561

Open
@gustavo-grieco

Description

@gustavo-grieco

I did some tests using medusa in a single directory, where different a number of contracts are available to compile individually (e.g. tests). The workflow looks like this:

  1. medusa fuzz --compilation-target src/X.sol
  2. medusa fuzz --compilation-target src/Y.sol

The first command will work correctly, the slither results will be saved to "slither_results.json", however, the second run will use the incorrect result. This can cause medusa to be less effective since the constants will not be extracted.

I think we should consider re-running slither if the compilation target changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingon holdThis issue was marked as not desirable to complete for nowvery-low-priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions