Struct property not available #4077
-
This is my Solidity code: How can I access to Person.cards? It is not available |
Beta Was this translation helpful? Give feedback.
Answered by
clauBv23
Jun 27, 2023
Replies: 1 comment
-
I assume that you are calling the default getter generated by the compile, in that case, the default getter won't return arrays in order to reduce gas costs. You need to define a getter and use it, then you'll be able to get |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
developer2346
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I assume that you are calling the default getter generated by the compile, in that case, the default getter won't return arrays in order to reduce gas costs. You need to define a getter and use it, then you'll be able to get
person.card