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

Target dev revert reason in brownie.reverts #861

Merged
merged 5 commits into from
Nov 23, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Allow specific targeting of dev revert string within brownie.reverts

Closes #806

How I did it

with brownie.reverts(dev_revert_msg="dev: foo"):
    ...

Also fixed a bug that I missed in #805 causing the dev revert string to not always be queried when requested.

How to verify it

Run tests. I added a few new cases.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 3b555e8 into master Nov 23, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the feat-dev-revert-context branch November 23, 2020 21:06
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.

Improvements to dev revert strings
1 participant