Assigning an array of signed integers to a storage array of different type can lead to data corruption in that array. This is due to a compiler bug introduced in v0.4.7
and fixed in v0.5.10
. (see here)
- Storage Array
- Signed Integers
- ABIEncoderV2
Type[] int[]
- Assignment -> Data Corruption
- Compiler Bug -> Fixed
solc 0.4.7
-> 0.5.10