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

Display revert location #225

Closed
wants to merge 27 commits into from
Closed

Display revert location #225

wants to merge 27 commits into from

Conversation

Jozwiaczek
Copy link
Contributor

@Jozwiaczek Jozwiaczek commented Apr 20, 2020

image

TODO

  • Try to hook-up error overriding in a simpler way
  • Add a lot more validations so it doesn't crash if something is wrong (eg. bytecode doesn't match)
    • Finds source location for a simple revert in the called method
    • Finds source location for a revert in a method called from the called method
    • Finds source location for a revert in an inherited contract
    • Finds source location for a revert in an inherited contract from node_modules
    • Finds source location for a revert in a library
    • Does not find a revert location for contracts called by the called contract. (Note that there shouldn't be any error output in the console - this must be a silent fail)
  • Have a default build dir (./build)
  • Use relative paths in source output (currently absolute - result in nondeterministic builds)
  • Support more RPCs
    • eth_estimateGas
    • eth_sendTransaction
    • eth_call
  • (separate PR) Support combined output JSON
  • (optional) Figure out a way to support internal transactions (evm_trace maybe?)

@Jozwiaczek Jozwiaczek added the Work in progress Work in progress label Apr 20, 2020
@marekkirejczyk
Copy link
Contributor

I propose to first fix linter, than tests, than keep refactoring

@sz-piotr
Copy link
Contributor

sz-piotr commented May 8, 2020

Let's make sure the CI is green

Jozwiaczek added 3 commits May 8, 2020 16:21
# Conflicts:
#	waffle-e2e/.gitignore
#	waffle-e2e/buildTestContracts.ts
#	waffle-e2e/package.json
#	waffle-e2e/src/HelloContract.sol
#	waffle-e2e/test/index.ts
@sz-piotr sz-piotr mentioned this pull request May 11, 2020
33 tasks
@marekkirejczyk
Copy link
Contributor

Seem to be stalled, closing for now. Feel free to reopen.

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

Successfully merging this pull request may close these issues.

4 participants