Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 796 Bytes

Initializing state-variables in proxy-based upgradeable contracts.md

File metadata and controls

19 lines (18 loc) · 796 Bytes

This should be done in initializer functions and not as part of the state variable declarations in which case they won’t be set. (see here)


Slide Screenshot

096.jpg


Slide Text

  • State Variables Initialized
  • Proxy-based Contracts
  • Constructors -> Initialize()
  • State Variables Declare -> Initialize
  • Initialize -> Initialize()
  • Not Set Otherwise

References


Tags