Reading from calldata structs that contain dynamically encoded, but statically sized members can result in incorrect values.
This is due to a compiler bug introduced in v0.5.6
and fixed in v0.5.11
. (see here)
- Calldata Structs
- ABIEncoderV2
- Static Size & Dynamic Encode
- Read -> Incorrect Values
- Compiler Bug -> Fixed
solc 0.5.6
-> 0.5.11