Skip to content

don't crash on solidity 0.8.4 typed errors#1110

Merged
iamdefinitelyahuman merged 3 commits intoeth-brownie:masterfrom
SatoshiAndKin:solidity_0.8.4_errors
Jul 19, 2021
Merged

don't crash on solidity 0.8.4 typed errors#1110
iamdefinitelyahuman merged 3 commits intoeth-brownie:masterfrom
SatoshiAndKin:solidity_0.8.4_errors

Conversation

@BlinkyStitt
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@wysenynja pls rebase good ser 🙏

@BlinkyStitt BlinkyStitt force-pushed the solidity_0.8.4_errors branch from 04e7ebf to 0b9cf88 Compare July 19, 2021 16:47
@BlinkyStitt
Copy link
Copy Markdown
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