pub trait UpgradeHook {
    fn on_upgrade(&self);
}
Expand description

Upgrade lifecycle hooks

Required Methods§

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.

Implementors§