Error: missing argument: in Contract constructor (count=0, expectedCount=1, code=MISSING_ARGUMENT, version=contracts/5.6.2)
at Logger.makeError (E:\solidity\erctoken\node_modules\@ethersproject\logger\src.ts\index.ts:261:28)
at Logger.throwError (E:\solidity\erctoken\node_modules\@ethersproject\logger\src.ts\index.ts:273:20)
at Logger.checkArgumentCount (E:\solidity\erctoken\node_modules\@ethersproject\logger\src.ts\index.ts:332:18)
at ContractFactory.<anonymous> (E:\solidity\erctoken\node_modules\@ethersproject\contracts\src.ts\index.ts:1237:16)
at step (E:\solidity\erctoken\node_modules\@ethersproject\contracts\lib\index.js:48:23)
at E:\solidity\erctoken\node_modules\@ethersproject\contracts\lib\index.js:23:71
at new Promise (<anonymous>)
at __awaiter (E:\solidity\erctoken\node_modules\@ethersproject\contracts\lib\index.js:19:12)
at ContractFactory.deploy (E:\solidity\erctoken\node_modules\@ethersproject\contracts\lib\index.js:1138:16) {
reason: 'missing argument: in Contract constructor',
code: 'MISSING_ARGUMENT',
count: 0,
expectedCount: 1
How can I solve this issues
Looks like you are missing a constructor argument. Can you share what your contract and script looks like? Is this a regular contract or upgradeable contract?
im having the same issue. Can anyone help please?
Error: missing argument: in Contract constructor (count=0, expectedCount=1, code=MISSING_ARGUMENT, version=contracts/5.6.2)
at Logger.makeError \smart_contract\node_modules@ethersproject\logger\src.ts\index.ts:261:28)
at Logger.throwError \smart_contract\node_modules@ethersproject\logger\src.ts\index.ts:273:20)
at Logger.checkArgumentCount \smart_contract\node_modules@ethersproject\logger\src.ts\index.ts:332:18)
at ContractFactory. (C:\Users\gavor\web30\smart_contract\node_modules@ethersproject\contracts\src.ts\index.ts:1237:16)
at step \smart_contract\node_modules@ethersproject\contracts\lib\index.js:48:23)
at Object.next \smart_contract\node_modules@ethersproject\contracts\lib\index.js:29:53)
\smart_contract\node_modules@ethersproject\contracts\lib\index.js:23:71
at new Promise ()
at __awaiter \smart_contract\node_modules@ethersproject\contracts\lib\index.js:19:12)
at ContractFactory.deploy smart_contract\node_modules@ethersproject\contracts\lib\index.js:1138:16) {
reason: 'missing argument: in Contract constructor',
code: 'MISSING_ARGUMENT',
count: 0, expectedCount: 1
You will have to post the contract you are calling and the code of the script your executing. Without it its impossible to tell you how to fix the problem.