Replies: 5 comments 3 replies
-
This seems interesting, and I will advise you to consult the solidity docs |
Beta Was this translation helpful? Give feedback.
-
I think you need to restructure you code or change the architecture to make it work. Here are some example to make it work:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer! |
Beta Was this translation helpful? Give feedback.
-
Refer this link to get more clarity : https://www.reddit.com/r/solidity/comments/xlgwk1/how_to_add_an_array_of_structs_as_a_parameter_in/ |
Beta Was this translation helpful? Give feedback.
-
Hey Guys!
Actually i'm on Section 4: Lottery Contract, btw i was scratching on Remix and i shaped this "Game", with this structs:
and here my new user function:
How can i actually initialize the Chibs[] when i cast the user for the first time below?
);
because as i'm doing, i receive this error:
I know i'm doing something wrong but i can't reconize what is it. Actually the AI Buddy suggested me to do it in this way, but it doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions