pub trait StorageMigration: OnRuntimeUpgrade {
    // Provided method
    fn migrate() -> Weight { ... }
}
Expand description

To run both pre- and post-checks around every migration, we entangle methods of OnRuntimeUpgrade into the desired flow and expose it with migrate method.

This way, try-runtime no longer triggers checks. We do it by hand.

Provided Methods§

source

fn migrate() -> Weight

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: OnRuntimeUpgrade> StorageMigration for T