Storage arrays containing structs or other statically sized arrays are not read properly when directly encoded in external function calls or in abi.encode()
.
This is due to a compiler bug introduced in v0.4.16
and fixed in v0.5.10
. (see here)
- Storage Arrays
- ABIEncoderV2
- Structs or Static Arrays
- Invalid Encode
- External Fn/abi.encode()
- Compiler Bug -> Fixed
solc 0.4.16
-> 0.5.10