Lesson 8, "Contract is not defined" called by web console #5063
Unanswered
philiplorber
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@philipo0 |
Beta Was this translation helpful? Give feedback.
2 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.
-
Around 13:14:36 of the tutorial, Patrick attempts to click on the fund button to get prompted about an intentional error related to the ethAmount, meanwhile I'm getting this error by the web console.
index.js:26 Uncaught (in promise) ReferenceError: contract is not defined
at HTMLButtonElement.fund
html-fund-me-fcc code
index.js
Hovering on the "contract" line 25 check that it is a variable and is not being called, eventhough at the next line 26 I attempt to call it. I believe it has something to do with the abi or maybe the contract address but already tried check them and hasn't fixed it.
constant.js
Beta Was this translation helpful? Give feedback.
All reactions