LESSON 14: expected 0 constructor arguments, got 6 #2635
-
ERROR
====================================================================================== I restarted the lesson from the scratch using the inheritance for imports instead of hard coding the whole thing in the contract as before, hoping to solve the previous error the terminal was returning after reintroducing At the end of the day I ran into the same error but now it is 6 arguments instead of the 2 in the previous error. My question is: "How come it is not expecting our 6 arguments" since our contract takes 6 arguments? The script runs fine until that point as you can see below: ====================================================================================== Deploy script
====================================================================================== |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Please push to GitHub; I will look into it |
Beta Was this translation helpful? Give feedback.
-
@krakxn Solved it by adding constructor arguments manually to artifacts as seen below but would love to understand why the constructor arguments weren't automatically included to artifacts. Thank you!
|
Beta Was this translation helpful? Give feedback.
-
@DorianDaSilva : The way I fixed it, That is the optimal way, By this way it will result in later on problem! |
Beta Was this translation helpful? Give feedback.
@krakxn Solved it by adding constructor arguments manually to artifacts as seen below but would love to understand why the constructor arguments weren't automatically included to artifacts. Thank you!