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 handler for Ganache revert message format #1794

Merged

Conversation

dmytrotkk
Copy link
Contributor

@dmytrotkk dmytrotkk commented Nov 19, 2020

What was wrong?

Related to Issue #1793

How was it fixed?

The case when data field in the RPC response is dict was handled, so Ganache revert reasons could be parsed correctly.

Todo:

Cute Animal Picture

Cute possum here

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @Dmitry-Tk! I just left one comment on standardizing the error message with the geth response.

web3/_utils/method_formatters.py Outdated Show resolved Hide resolved
@dmytrotkk dmytrotkk requested a review from kclowes November 20, 2020 13:52
@dmytrotkk
Copy link
Contributor Author

@kclowes could you please take a look at this failing ethpm test?

@tmckenzie51
Copy link
Contributor

I was able to rerun it for you @Dmitry-Tk. Seems to be working now!

@dmytrotkk
Copy link
Contributor Author

@tmckenzie51 @kclowes could this PR be merged now or some other modifications needed?

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcgarreau I'm going to leave this for your final approval!

@wolovim wolovim force-pushed the fix-ganache-revert-reason-parsing branch from 99c65cf to 3bfd53d Compare December 2, 2020 21:59
@wolovim wolovim merged commit 1f647a9 into ethereum:master Dec 2, 2020
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

Successfully merging this pull request may close these issues.

4 participants