Removing initializer on upgrades

If you delete the original initializer, then that logic would not be available to any newly deployed proxies that use the new implementation.

Instead, you can use a separate reinitializer function and include versioning, so that if a new proxy is deployed later on, you can call the initializers in order. In this case, v2's reinitializer is more of a migration function to get from v1 to v2.

1 Like