Upgradeable
The UpgradeableComponent is designed for easy upgradability of tokenbound accounts.
The full contract code of the UpgradableComponent can be found here.
Functions
_upgrade
_upgradefn _upgrade(
ref self: ComponentState<TContractState>,
new_class_hash: ClassHash
);The _upgrade function replaces the current contract's class hash with a new one provided by new_class_hash.
Parameters
Name
Type
Description
new_class_hash
ClassHash
The class hash of the new contract implementation to upgrade to.
Last updated