Trait near_contract_tools::upgrade::serialized::UpgradeHook
source · pub trait UpgradeHook {
fn on_upgrade(&self);
}
Expand description
Upgrade lifecycle hooks
Required Methods§
sourcefn on_upgrade(&self)
fn on_upgrade(&self)
on_upgrade
should be called when the smart contract is upgraded. If
you use the crate::Upgrade
macro, it will call the hook
automatically for you.