Lesson 14: No arguments passed to the base constructor. Specify the arguments or mark "RandomIpfsNft" as abstract. #6245
-
Hi! I use the example code from the github for my RandomIpfsNft contract. But my Vscode is keep complaining that"No arguments passed to the base constructor. Specify the arguments or mark "RandomIpfsNft" as abstract." I don't know where is the problem. Could anyone help me to solve this. Here's my github link: https://github.com/Charlotte528/hardhat-NFT Thanks so much!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I assume error comes from following package As ethers v5 and v6 has different syntax that might be issue, so please update packages to I have already created pull request for this to course repo. |
Beta Was this translation helpful? Give feedback.
Hi @Charlotte528
I assume error comes from following package
"@nomiclabs/hardhat-ethers"
in your repository if you do below:"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13" -> this will be specific hardhat ethers version
If you do following:
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers", -> this is latest hardhat ethers for which syntax is different
As ethers v5 and v6 has different syntax that might be issue, so please update packages to
"npm:hardhat-deploy-ethers@^0.3.0-beta.13"
I have already created pull request for this to course repo.