Skip to content
Snippets Groups Projects
Unverified Commit 5d642936 authored by kianenigma's avatar kianenigma
Browse files

fix migration

parent de93ecdf
Branches
No related merge requests found
Pipeline #511942 waiting for manual action with stages
in 12 minutes and 13 seconds
......@@ -100,12 +100,15 @@ pub mod v17 {
migrated_stashes.into(),
)
}
}
#[cfg(feature = "try-runtime")]
fn post_upgrade(_state: Vec<u8>) -> Result<(), TryRuntimeError> {
frame_support::ensure!(Pallet::<T>::on_chain_storage_version() >= 17, "v17 not applied");
Ok(())
#[cfg(feature = "try-runtime")]
fn post_upgrade(_state: Vec<u8>) -> Result<(), TryRuntimeError> {
frame_support::ensure!(
Pallet::<T>::on_chain_storage_version() >= 17,
"v17 not applied"
);
Ok(())
}
}
pub type MigrateV16ToV17<T> = VersionedMigration<
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment