Skip to content

Commit

Permalink
Update after review
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsso committed Feb 26, 2024
1 parent ccd56cb commit 87ff2cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions runtimes/eden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ pub fn wasm_binary_unwrap() -> &'static [u8] {
)
}

use core::u64;

use constants::RuntimeBlockWeights;
use frame_support::{construct_runtime, weights::Weight};
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
Expand Down Expand Up @@ -193,7 +191,7 @@ pub type Migrations = (
pallet_contracts::Migration<Runtime, TEST_ALL_STEPS>,
// Run custom migrations
//
// For polkadot 1.5.0
// For polkadot 1.6.0
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pallet_identity::migration::v1::VersionUncheckedMigrateV0ToV1<Runtime, 50>,
migrations::MultiMigration<Runtime>,
Expand Down
6 changes: 5 additions & 1 deletion runtimes/eden/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ where

// Storage migration `pallet_identity::migration::v1::VersionUncheckedMigrateV0ToV1<Runtime, 50>,` does not update
// StorageVersion on chain.

StorageVersion::new(1).put::<pallet_identity::Pallet<T>>();

T::DbWeight::get().writes(11)
}

Expand All @@ -68,6 +68,10 @@ where
StorageVersion::get::<pallet_uniques::Pallet<T>>() == 0,
TryRuntimeError::Other("pallet_uniques storage version is not 0")
);
ensure!(
StorageVersion::get::<pallet_identity::Pallet<T>>() == 0,
TryRuntimeError::Other("pallet_identity storage version is not 0")
);

Ok(vec![])
}
Expand Down

0 comments on commit 87ff2cf

Please sign in to comment.