Complex struct getter detector#
Name: complex-struct-getter
Solidity-generated getters for public state variables do not return array and mapping members of (possible nested) structs. See the Solidity docs for more details.
Example#
- Getter for
s
is generated. Since theComplexStruct
contains an array and a mapping, the getter returns only the non-complex membersa
andc
(as a tuple). - The array member
b
is not returned by thes
getter. - The mapping member
d
is not returned by thes
getter.
Parameters#
The detector does not accept any additional parameters.