Skip to content
Discussion options

You must be logged in to vote

Hello @jamsubzero I just cloned the repo and ran the test, which went fine as you can see bellow, this is estrange as is the exact same code but anyways I have some hints that could be handy.

  1. Please execute the test like this: brownie test -s -k test_only_owner_can_withdraw and paste here the result.
  2. NoneType means that instead of an instance of a Class, Object or whatever else you might got, you actually got None, for example like fund_me returns None or bad_actor is None. So I wonder if you cloned the entire repo and executed the test on it, or you cloned the repo and just replaced the test script into your code? If is the second one, you may have something else missing elsewhere.
  3. May …

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@jamsubzero
Comment options

@cromewar
Comment options

@jamsubzero
Comment options

@andreitoma8
Comment options

@cromewar
Comment options

Answer selected by jamsubzero
Comment options

You must be logged in to vote
1 reply
@cromewar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants