Open
Description
function _getInitializableStorage() internal virtual pure returns (InitializableStorage storage $) {Would be a smaller change, that we could easily generalize to all the upgradeable contracts. The downside is that overriding it would likely require the user writting assembly.
I'm just realizing that this would not really be "good" to generalize, because it gives the developper direct/easy access to the storage. Its basically like making the storage variables internal instead of private. I don't think its a good idea.
Right now I'd favor the current code.
@arr00 @ernestognw wdyt ? should we finally merge this ?
Originally posted by @Amxx in OpenZeppelin/openzeppelin-contracts#5337 (comment)
Metadata
Metadata
Assignees
Labels
No labels