PatrickAlphaC/brownie_fund_me

test_only_owner_can_withdraw throws AttributeError instead of expected VM exception

Closed this issue · 1 comments

Great lesson.
I'm testing with a clone of your repo.

I ran brownie test -k test_only_owner_can_withdraw --network development and saw an unexpected error:

> tx = fund_me.withdraw({"from": bad_actor})
E AttributeError: 'NoneType' object has no attribute '_with_attr'

Brownie v1.17.1 - Python development framework for Ethereum
platform darwin -- Python 3.9.8, pytest-6.2.5, py-1.10.0

installing node 16.13.0 and then reinstalling ganache-cli@latest, seems to have fixed this issue.