Upgradeable
Last updated
Last updated
The UpgradeableComponent
is designed for easy upgradability of tokenbound accounts.
The full contract code of the UpgradableComponent
can be found .
_upgrade
The _upgrade
function replaces the current contract's class hash with a new one provided by new_class_hash
.
new_class_hash
ClassHash
The class hash of the new contract implementation to upgrade to.