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

Add proper support for enums #918

Closed
rappie opened this issue Jan 24, 2023 · 3 comments
Closed

Add proper support for enums #918

rappie opened this issue Jan 24, 2023 · 3 comments

Comments

@rappie
Copy link

rappie commented Jan 24, 2023

This would be nice for situations where you want to test for a limited amount of options/values (but more than 2)

For example I would use this in combination with hevm.prank() to simulate a couple of users by using a mapping from the enum value to an address.

@samalws
Copy link
Contributor

samalws commented Mar 8, 2023

Once the slither version on this repo is bumped high enough that crytic/slither#1665 is included, enums will be supported without any change to echidna code needed

@ggrieco-tob
Copy link
Member

This is great, but keep in mind that echidna will still be testing inputs outside the enum range. Moreover, it will not distinguish between possible enum types so the speedup will not scale for large contracts 😞

@ggrieco-tob
Copy link
Member

Already released in slither, so the support improved. It is not completely solved, but I think we close this one.

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

3 participants