Lesson 6: Error: incorrect number of arguments to constructor #6355
-
Hi, I'm at Lesson 6: Part 4 towards the end where Patrick was demonstrating the contract deployment. However, after trying to deploy, I received this error below.
and also...
Below is my SimpleStorage sol contract:
And below is my deploy.js code:
Please help me out, let me know if more info is required. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the fix to this. I found a similar problem here. Due to the updated documentation of ethers to V6, all I had to do was change deployed() to waitForDeployment() as below:
Also, note that the last line is .target instead of .address:
Some info about the difference between .address and .target here |
Beta Was this translation helpful? Give feedback.
Found the fix to this. I found a similar problem here.
Due to the updated documentation of ethers to V6, all I had to do was change deployed() to waitForDeployment() as below:
Also, note that the last line is .target instead of .address:
S…