ethereum-optimism / design-docs

MIT License
27 stars 20 forks source link

design doc for 'Always using _disableInitializers() in constructors' #144

Closed AmadiMichael closed 3 weeks ago

AmadiMichael commented 1 month ago

This design doc proposes always using _disableInitializers() in proxied contracts constructors rather than the prevalent approach of calling the initialize() function from the constructor.

Issue: https://github.com/ethereum-optimism/optimism/issues/12634

AmadiMichael commented 3 weeks ago

Discussed in #150. Conclusion was to implement it alongside adding the following semgrep rules: