UpgradeablePrivateTrait
Fully qualified path: token_bound_accounts::components::upgradeable::upgradeable::UpgradeableComponent::UpgradeablePrivateTrait
pub trait UpgradeablePrivateTrait<
TContractState,
+HasComponent<TContractState>,
+Drop<TContractState>,
impl Account: HasComponent<TContractState>,
impl SRC5: HasComponent<TContractState>,
>
Trait functions
_upgrade
@notice replaces the contract’s class hash with new_class_hash.
Emits an Upgraded event.
Fully qualified path: token_bound_accounts::components::upgradeable::upgradeable::UpgradeableComponent::UpgradeablePrivateTrait::_upgrade
fn _upgrade(ref self: ComponentState<TContractState>, new_class_hash: ClassHash)