Replies: 1 comment
-
You have to pass parameters when deploying the contract |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I get the following error while running the deploy.js at the beginning of hardhat setup.
If it is of any help, since hardhat has changed quite a bit some files differ from the tutorial.
Error: incorrect number of arguments to constructor
at ContractFactory.getDeployTransaction (/home/blockchain/hardhat-simple-storage-fcc/node_modules/ethers/src.ts/contract/factory.ts:87:19)
at ContractFactory.deploy (/home/blockchain/hardhat-simple-storage-fcc/node_modules/ethers/src.ts/contract/factory.ts:105:31)
at main (/home/blockchain/hardhat-simple-storage-fcc/scripts/deploy.js:9:54)
error Command failed with exit code 1.
Beta Was this translation helpful? Give feedback.
All reactions