Closed xiaopang0626 closed 1 year ago
@xiaopang0626 In the ethers version 6, it is updated to this;
- const transactionReceipt = await contract.deployTransaction.wait(1);
+ const transactionReceipt = await contract.deploymentTransaction().wait(1);
The same change applies to
console.log(contract.deployTransaction);
If you are using ethers version 6 then the above line should be changed to
console.log(contract.deploymentTransaction());
Lesson
Lesson 5
Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
No response
Operating System
Linux
Describe the bug
I'm getting a TypeError while deploying the error is :
My code is here:
and ethers version is v6.3.0 Someone Help~~~