Lesson 5: ReferenceError: contract is not defined #6461
Replies: 1 comment
-
Resolved by commenting out |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, everyone
When trying to sign a transaction and view it in the console via
I get an error saying
ReferenceError: contract is not defined at main (/Users/jasmine_sprout/Desktop/full-blockchain-solidity-course-js/ethers-simple-storage/deploy.js:31:15)
I believe that this is happening due to me commenting out the contract variable previously in the code:
However, when done in the video it works for Patrick even with the variable commented out. The output he receives in the console looks like this:

Can I recreate this result without uncommenting the contract variable? If I do, a new entire contract is deployed.
You can find the full code here.
Beta Was this translation helpful? Give feedback.
All reactions