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

Vyper support is limited #652

Closed
ggrieco-tob opened this issue Apr 30, 2021 · 2 comments
Closed

Vyper support is limited #652

ggrieco-tob opened this issue Apr 30, 2021 · 2 comments
Labels

Comments

@ggrieco-tob
Copy link
Member

Echidna works on vyper contracts running the .vy files directly, however:

  • properties should be hardcoded in the contract
  • any use of framework will fail to work (e.g. brownie).
  • slither won't run on it, so there is no constant extraction or assertion detection.
  • we still get the constants if they are returned by a function inside the code
  • coverage feedback and source code integration works

It is expected to have a limited effectiveness since we cannot get useful constants from the source code.

@ggrieco-tob
Copy link
Member Author

This is something we won't fix unless Vyper has more traction.

@pcaversaccio
Copy link

pcaversaccio commented Apr 25, 2024

FYI, I added Echidna to my 🐍 snekmate Vyper contracts: pcaversaccio/snekmate#239. Some important learnings:

  • hevm doesn't strip whitespace characters (!) when FFI is used,
  • use filterFunctions in the Echidna config file to remove crashing calls to the VyperDeployer contract if allContracts: true is used.

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

No branches or pull requests

2 participants