Skip to content

Lesson 6: ReferenceError : contract is not defined #645

Answered by Rishi860
yatinkhandelwal asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@mattjaf
Comment options

@yatinkhandelwal
Comment options

Comment options

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

Comment options

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

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