Lesson 6: ReferenceError : contract is not defined #645
-
This is the error that I'm encountering |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
could you paste your deploy.js here, also try recompiling contracts again by
|
Beta Was this translation helpful? Give feedback.
-
@yatinkhandelwal Can you share you deploy script, please? It seems to be a simple issue defining the contract but we need to see the script. |
Beta Was this translation helpful? Give feedback.
-
In console.log, you are trying to access contract.address where the variable contract isn't defined anywhere in the file. Use |
Beta Was this translation helpful? Give feedback.
In console.log, you are trying to access contract.address where the variable contract isn't defined anywhere in the file.
Use
simpleStorage.address
instead