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: avoids development network to revert when atexit is being called #660

Conversation

AlanVerbner
Copy link
Contributor

@AlanVerbner AlanVerbner commented Jul 4, 2020

What I did

When running a script using development network, even using a ganache instance I launch, after finishing the execution the evm changes are reverted.

How I did it

As pointed out by @iamdefinitelyahuman I removed the lines where invoked when exiting.

How to verify it

I haven't tried myself to automatically test the atexit hook, I can try to do so if required (I'm not a python dev so it might take me a while but a quick googling told me that hook is only executed then the process ends, in this case, pytest) . Manual test is required I'm afraid.

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

Copy link
Member

@iamdefinitelyahuman iamdefinitelyahuman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙏

@iamdefinitelyahuman iamdefinitelyahuman merged commit c892832 into eth-brownie:master Jul 4, 2020
@AlanVerbner
Copy link
Contributor Author

Happy to contribute back! the work done in this library is amazing 💪

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