Trait frame_support::traits::OnRuntimeUpgrade [−][src]
The runtime upgrade trait.
Implementing this lets you express what should happen when the runtime upgrades, and changes may need to occur to your module.
Provided methods
fn on_runtime_upgrade() -> Weight
[src]
Perform a module upgrade.
Warning
This function will be called before we initialized any runtime state, aka on_initialize
wasn’t called yet. So, information like the block number and any other
block local data are not accessible.
Return the non-negotiable weight consumed for runtime upgrade.