people.push (SimpleStorage contract) #294
Answered
by
SOLenthusiast
SOLenthusiast
asked this question in
Q&A
-
Hey guys, in the SimpleStorage contract, why can't we just do "people.push(_favNumer, _name)"?
|
Beta Was this translation helpful? Give feedback.
Answered by
SOLenthusiast
Jun 13, 2022
Replies: 1 comment
-
Never mind. I just realised that it's a 1D array that's expecting a struct type as input. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PatrickAlphaC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind. I just realised that it's a 1D array that's expecting a struct type as input.