Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 635bada

Browse files
committed
remove extra checks
1 parent 1149e3b commit 635bada

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

frame/staking/src/migrations.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ pub mod v12 {
3535
impl<T: Config> OnRuntimeUpgrade for MigrateToV12<T> {
3636
#[cfg(feature = "try-runtime")]
3737
fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
38-
frame_support::ensure!(
39-
StorageVersion::<T>::get() == Releases::V11_0_0,
40-
"Expected v11 before upgrading to v12"
41-
);
42-
4338
frame_support::ensure!(
4439
T::HistoryDepth::get() == HistoryDepth::<T>::get(),
4540
"Provided value of HistoryDepth should be same as the existing storage value"
@@ -134,11 +129,6 @@ pub mod v11 {
134129

135130
#[cfg(feature = "try-runtime")]
136131
fn post_upgrade(_state: Vec<u8>) -> Result<(), &'static str> {
137-
frame_support::ensure!(
138-
StorageVersion::<T>::get() == crate::Releases::V11_0_0,
139-
"wrong version after the upgrade"
140-
);
141-
142132
let old_pallet_name = N::get();
143133
let new_pallet_name = <P as PalletInfoAccess>::name();
144134

0 commit comments

Comments
 (0)