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

Bugfix 2969 #2989

Merged
merged 2 commits into from
Jun 8, 2023
Merged

Bugfix 2969 #2989

merged 2 commits into from
Jun 8, 2023

Conversation

fselmo
Copy link
Collaborator

@fselmo fselmo commented Jun 8, 2023

What was wrong?

closes #2969

How was it fixed?

  • Catch UnicodeDecodeError when trying to decode a contract revert reason and raise ContractLogicError with raw data field from the response instead.

Todo:

Cute Animal Picture

lepitse
20191005_111115

- If we can't decode the revert reason string, simply raise the ``ContractLogicError`` with the raw data and issue a warning that there was an issue decoding a reason string.
@fselmo fselmo marked this pull request as ready for review June 8, 2023 22:02
@fselmo fselmo requested review from kclowes and pacrob June 8, 2023 22:02
Copy link
Contributor

@pacrob pacrob left a comment

Choose a reason for hiding this comment

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

lgtm!

@fselmo fselmo merged commit be76120 into ethereum:main Jun 8, 2023
@fselmo fselmo deleted the bugfix-2969 branch June 8, 2023 22:24
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.

raise_contract_logic_error_on_revert fails with UnicodeDecodeError
2 participants