What is the alternative for `upgradeTo()` function in Transparent Upgradeable Proxy?

Yes, as described in v5.0.0-rc.0 release notes:

  • UUPSUpgradeable, TransparentUpgradeableProxy and ProxyAdmin: Removed upgradeTo and upgrade functions, and made upgradeToAndCall and upgradeAndCall ignore the data argument if it is empty. It is no longer possible to invoke the receive function (or send value with empty data) along with an upgrade. (#4382)
1 Like