You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like this flow is validating that the initializing is occuring twice. Looking at current OZ's implementation that's not a big deal as reinitizaling modifier sets initializing to true again, but I was concerned that this would revert. It might make sense to have the safeguard on the modifiers/outer facing functions and have the inner one without a check. Otherwise leaving this unchanged is fine as well.
The text was updated successfully, but these errors were encountered:
marcoatpaladin
changed the title
INFO: reinitializers call _upgrade function which is marked as onlyInitializing
reinitializers call _upgrade function which is marked as onlyInitializingJul 15, 2024
The reason why _upgrade() have onlyInitializing() modifier is from OZ's Initializable.sol:
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
_checkInitializing();
_;
}
initializeVersionable() is missing comment for initialization in same tx, right after deployment (the way ProxyManager uses versionables) and/or access restriction
gif-next/contracts/upgradeability/Versionable.sol
Line 34 in 6319a56
Seems like this flow is validating that the initializing is occuring twice. Looking at current OZ's implementation that's not a big deal as
reinitizaling
modifier sets initializing to true again, but I was concerned that this would revert. It might make sense to have the safeguard on the modifiers/outer facing functions and have the inner one without a check. Otherwise leaving this unchanged is fine as well.The text was updated successfully, but these errors were encountered: