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

Fix ReturnValue comparison of tuples containing strings #1476

Conversation

jgarber
Copy link

@jgarber jgarber commented Mar 18, 2022

Problem

When you compare a ReturnValue that has a string containing a single space, it fails to convert the string to Wei, which isn't rescued and then treated as a string like I believe was intended.
TypeError: Cannot convert str 'bar baz' to wei.

  • 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

@jgarber jgarber marked this pull request as ready for review March 19, 2022 02:14
@iamdefinitelyahuman iamdefinitelyahuman merged commit 8ad14f0 into eth-brownie:master May 15, 2022
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.

2 participants