Replies: 1 comment 1 reply
-
Pinning this ;) Wil try using your source code. Nice contribution @n4n0b1t3 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The problem:
In the end of Lesson 6 we are trying to test for a reverted transaction to make sure the "only owner" modifier works as intended. The check relies on a mechanism where a Virtualmachine error is caught when the transaction reverts and thus proves, that the modifier works.
Until brownie v1.18.1 this mechanism won't work, throws an error, and interrupts the test, see my bug request in the eth-brownie repository here:
eth-brownie/brownie#1441
However, the current Python 3.10.2 will only install Brownie version v1.16.4 and any efforts to force the new version on it will result in another error.
The solution
The only (for me) acceptable solution is to set up a virtual environment with a specific Python version, in my case 3.9.10, which will install the newest brownie version.
This process is described in this post here:
#1109
In order to test if your setup has the same issue, you can download the test sources here:
https://github.com/n4n0b1t3/brownie.reverts.example
Beta Was this translation helpful? Give feedback.
All reactions