0

I got this error: Is there some error I have been making in the contract? Any help would I appreciate, if you need me to publish other contracts just tell me I will update this question with the contract add-in.

at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'too many arguments: in Contract constructor', code: 'UNEXPECTED_ARGUMENT', count: 1, expectedCount: 0

enter image description here

enter image description here

2 Answers 2

2

You are giving a string argument -> “Hello, Hardhat” when you are deploying the contract but your contract does not expect any arguments.

So remove it and it should be ->

const nicola = await Nikola.deploy();
0

you just use

const nicola = await Nikola.deploy();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.