Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 727 Bytes

Packed storage with ABIEncoderV2.md

File metadata and controls

18 lines (18 loc) · 727 Bytes

Storage structs and arrays with types shorter than 32 bytes can cause data corruption if encoded directly from storage using ABIEncoderV2. This is due to a compiler bug introduced in v0.5.0 and fixed in v0.5.7. (see here)


Slide Screenshot

081.jpg


Slide Text

  • Packed Storage
  • ABIEncoderV2
  • Structs/Arrays -> Type > 32B
  • Storage Encode -> Data Corruption
  • Compiler Bug -> Fixed
  • solc 0.5.0 -> 0.5.7

References


Tags