lesson 5: TypeError contract.deploymentTransaction.wait is not a function #6171
Replies: 4 comments 1 reply
-
when i put mouse to "deploymentTransaction.wait" (method) deploymentTransaction(): ethers.ethers.ContractTransactionResponse | null (+1 overload) This is only available if this instance was returned from a [[ContractFactory]]. |
Beta Was this translation helpful? Give feedback.
-
Hi try to replace .wait(1) with .waitForTransaction(1) |
Beta Was this translation helpful? Give feedback.
-
the other question is:
the following is the version i am using
the following is my context of terminal
the context shorter than the video i watched, which is lesson 5. hoping for help, thank you |
Beta Was this translation helpful? Give feedback.
-
This works for me.
|
Beta Was this translation helpful? Give feedback.
-
it shows deploymentTransaction only can open by contractfactory
the error is
Deploying, please wait...
TypeError: contract.deploymentTransaction.wait is not a function
at main (/Users/a1234/hh-fcc/ethers-simple-storage/deploy.js:21:66)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
the package.json is
Beta Was this translation helpful? Give feedback.
All reactions