Replies: 1 comment 1 reply
-
Hi @Ozoano , |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Error: missing argument: in Contract constructor (count=0, expectedCount=1, code=MISSING_ARGUMENT, version=contracts/5.4.1)
at Logger.makeError (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\logger\lib\index.js:238:21)
at Logger.throwError (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\logger\lib\index.js:247:20)
at Logger.checkArgumentCount (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\logger\lib\index.js:307:18)
at ContractFactory. (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\contracts\lib\index.js:1122:32)
at step (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\contracts\lib\index.js:48:23)
at Object.next (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\contracts\lib\index.js:29:53)
at C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\contracts\lib\index.js:23:71
at new Promise ()
at __awaiter (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\contracts\lib\index.js:19:12)
at ContractFactory.deploy (C:\Users\sony\Documents\SOLIDITY\scripts\node_modules@ethersproject\contracts\lib\index.js:1111:16) {
reason: 'missing argument: in Contract constructor',
code: 'MISSING_ARGUMENT',
count: 0,
expectedCount: 1
According to this error snippets...
reason: 'missing argument: in Contract constructor',
code: 'MISSING_ARGUMENT',
count: 0,
expectedCount: 1
const contract = await contractFactory.deploy();
the deploy() is expecting an arguement(s). However, from the tutorial, the tutor was able to deploy it without passing any args.
Beta Was this translation helpful? Give feedback.
All reactions