Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 1012 Bytes

Unprotected initializers in proxy-based upgradeable contracts.md

File metadata and controls

19 lines (18 loc) · 1012 Bytes

Proxy-based upgradeable contracts need to use public initializer functions instead of constructors that need to be explicitly called only once. Preventing multiple invocations of such initializer functions (e.g. via initializer modifier from OpenZeppelin’s Initializable library) is a must. (see here and here)


Slide Screenshot

095.jpg


Slide Text

  • Unprotected Initializers
  • Proxy-based Contracts
  • Constructors -> Initialize()
  • Multiple Invocations -> Reinitialize Contract
  • OZ Initializable Library

References


Tags