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

don't crash on solidity 0.8.4 typed errors #1110

Merged

Conversation

BlinkyStitt
Copy link
Collaborator

@BlinkyStitt BlinkyStitt commented Jun 9, 2021

What I did

Solidity now has typed errors. This keeps parsing them from crashing brownie.

We can figure out actually parsing them in this PR or merge this and do that later.

How I did it

Check for the string selector before trying to parse as a string

How to verify it

revert with the new typed errors.

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

@skellet0r
Copy link
Collaborator

@wysenynja pls rebase good ser 🙏

@BlinkyStitt
Copy link
Collaborator Author

I don't think we need additional tests. if the existing ones for parsing errors work, then this change is good.

@iamdefinitelyahuman iamdefinitelyahuman merged commit e4130b3 into eth-brownie:master Jul 19, 2021
@BlinkyStitt BlinkyStitt deleted the solidity_0.8.4_errors branch July 19, 2021 19:23
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.

3 participants