Closed AmadiMichael closed 3 weeks 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.
_disableInitializers()
initialize()
Issue: https://github.com/ethereum-optimism/optimism/issues/12634
Discussed in #150. Conclusion was to implement it alongside adding the following semgrep rules:
external
initializer
This design doc proposes always using
_disableInitializers()
in proxied contracts constructors rather than the prevalent approach of calling theinitialize()
function from the constructor.Issue: https://github.com/ethereum-optimism/optimism/issues/12634