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

Use EVMole to improve error messages #250

Open
DanielSchiavini opened this issue Jun 26, 2024 · 0 comments
Open

Use EVMole to improve error messages #250

DanielSchiavini opened this issue Jun 26, 2024 · 0 comments

Comments

@DanielSchiavini
Copy link
Collaborator

The EVMole library extracts function selectors and arguments from bytecode, even for unverified contracts.

We could use EVMole together with Etherscan to provide more detailed errors, traces and stack traces.

Suggested UX

  1. We add evmole as a forking-recommended optional dependency
  2. When an error occurs or a trace is requested, we first check whether the contract is registered in the environment
  3. If the contract isn't registered, we look for an Etherscan API key (see Allow setting up Etherscan API key and URL #249)
  4. If there's no Etherscan API key or the contract isn't verified, we try to import evmole
  5. If we can import evmole, use it for generating more detailed errors. Otherwise we can add a tip for the user to install it
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

1 participant