Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 815 Bytes

State variables in proxy-based upgradeable contracts.md

File metadata and controls

18 lines (18 loc) · 815 Bytes

The declaration order/layout and type/mutability of state variables in such contracts should be preserved exactly while upgrading to prevent critical storage layout mismatch errors. (see here)


Slide Screenshot

099.jpg


Slide Text

  • State Variables Order/Layout/Type/Mutability
  • Proxy-based Contracts
  • Data Proxy -> Logic Impl.
  • Proxy <-> Impl
  • Note Same -> Critical Errors
  • Same -> Order/Layout/Type/Mutability

References


Tags