TypeError: no matching function (argument="key", value="deployTransaction", code=INVALID_ARGUMENT, version=6.0.8) #4947
Replies: 4 comments 4 replies
-
First, let me know which Lesson you are in right now. |
Beta Was this translation helpful? Give feedback.
-
@Sharma7Prateek You forgot the parenthesis; -await contract.deployTransaction
+await contract.deployTransaction() |
Beta Was this translation helpful? Give feedback.
-
Hello. Instead of Before: const contract = await contractFactory.deploy();
const deploytransaction = await contract.deployTransaction After: const contract = await contractFactory.deploy();
const deploytransaction = await contract.deploymentTransaction().wait();
console.log("contract deployed to: ", deploytransaction.contractAddress) This should work. Please let me know :) |
Beta Was this translation helpful? Give feedback.
-
role back to ethers 5.4.0- u may us the below command
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hey,
i am getting this error while deploying my contract.
Please help!!!
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions