Skip to content

lesson 7: SmartContract Lottery #1836

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

You must be logged in to vote

Hello @sundaepromix
Additionally to what @Neftyr said, the none type is saying that is not able to get the contract itself.
The reasons could be various:

  1. if you deploy a contract o a script, and the try to use it in another script for local development on ganache. It won't find the contract as when you deploy to local you wont have a build folder with the addresses of the last deployments. Try to run everything on the same execution
  2. Check out your are deploying the mocks as @Neftyr suggested.
  3. Try to find any typo on your imports.

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by cromewar
Comment options

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

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