Skip to content

test_fund_me.py returns AttributeError: 'NoneType' object has no attribute 'getEntranceFee' #1750

Answered by cromewar
klovertexarkana asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @klovertexarkana this might happen to several reasons.

  1. you should wait one block confirmation before calling the getEntranceFee to ensure the contract was deployed.
  2. Check you contract, does the function is called exactly getEntranceFee? may be there is a typo causing the problem.
  3. You might have a bad contract cache, so delete the build folder on your project and try again.

I hope any of this info might help.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@klovertexarkana
Comment options

@cromewar
Comment options

@klovertexarkana
Comment options

@cromewar
Comment options

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