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

Unable to determine error_code and test stops #1757

Closed
YoshihitoAso opened this issue Mar 27, 2024 · 0 comments
Closed

Unable to determine error_code and test stops #1757

YoshihitoAso opened this issue Mar 27, 2024 · 0 comments

Comments

@YoshihitoAso
Copy link
Contributor

Environment information

  • brownie Version: 1.20.2
  • ganache-cli Version: 7.9.2
  • solc Version: 0.8.23
  • Python Version: 3.11
  • OS: osx/linux

What was wrong?

In my test, I use brownie.reverts(revert_msg="Integer overflow") to determine the error message, but this process stops with the current latest eth-brownie (v1.20.2) .

After analyzing the cause, processing stopped at the following part.

How can it be fixed?

I haven't been able to investigate why it's been working fine so far, but I think this code should be implemented like this, for example:

error_code = int(HexBytes(data[10:]).hex(), 16)
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

No branches or pull requests

2 participants