Error at deploy.js #6011
-
|
I tried to write deploy.js using the hardhat deploy method for this contract and I don't why it gives an error . The contractThe code for the hardhat deploy methodThe code for the hardhat run scripts methodI want to understand what causes the error. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
It reverts this error |
Beta Was this translation helpful? Give feedback.
-
|
This same to Lesson 6, I recommend to challenge yourself. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @muhammet72 The issue is because you have used reserved keyword Try to avoid using reserved keywords as issues related to those can be really hard to find and debug |
Beta Was this translation helpful? Give feedback.
Hello @muhammet72
The issue is because you have used reserved keyword
"constructor"in yourmodule.exports.tags = ["all", "constructor"]just change it into something else likemodule.exports.tags = ["all", "con"]and issue will be fixed ;)Try to avoid using reserved keywords as issues related to those can be really hard to find and debug