Skip to content

Lesson8 Withdraw: TypeError: contract.withdraw is not a function #1499

Answered by Rishi860
Sakana-xc asked this question in Q&A
Discussion options

You must be logged in to vote

Your index.js file is fine and I checked through your front-end repo that also works.
I guess you are not entering the amount in the input field or the value entered in the field is not reaching your contract.
What does the console prints for this statement: console.log('Funding with ${ethAmount}...')

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Rishi860
Comment options

@Sakana-xc
Comment options

@Rishi860
Comment options

@Sakana-xc
Comment options

@Rishi860
Comment options

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