Lesson 6 - TypeError: Cannot read properties of undefined (reading 'wait') - #6278
Replies: 2 comments 3 replies
-
Hey @herculeskan ! I had the same issues with hardhat network on my local machine.
the deployed is a runner function which might give error based on versions . Instead just use the .deploy(); |
Beta Was this translation helpful? Give feedback.
-
Hi @herculeskan, And it could work :) |
Beta Was this translation helpful? Give feedback.
-
TypeError: Cannot read properties of undefined (reading 'wait')
hello, I unable to deploy my contract for some issues like for example,
deployed()
keyword changed towaitForDeployment()
, now I have the same issue in my terminal but with another function:I checked in the simpleStorage part, however I realized that
deployTransaction.wait(6)
could has an errorI know because the error jumps after
console.log("waiting for the block taxes ")
in the terminalI suspect that probably
ethers.getContractFactory
Has a different function, however is not the same asdeployTransaction.wait
and if is it correct. How can I fix this issue?
Beta Was this translation helpful? Give feedback.
All reactions