Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangminqi committed Jan 3, 2025
1 parent 8983ba4 commit db6b60e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parachain/runtime/litentry/src/migration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ use pallet_scheduler::Agenda;
use sp_std::marker::PhantomData;
#[cfg(feature = "try-runtime")]
use sp_std::vec::Vec;
extern crate alloc;

pub type Migrations<Runtime> = (
// Scheduler V0 => V4
Expand Down Expand Up @@ -219,10 +220,11 @@ where
}

fn on_runtime_upgrade() -> frame_support::weights::Weight {
use alloc::collections::btree_map::BTreeMap;
// Remove preimage correpted storage
// TODO: Very Weak safety
let mut weight = T::DbWeight::get().reads(1);
if StorageVersion::get::<Pallet<T>>() != 0 {
if StorageVersion::get::<pallet_preimage::Pallet<T>>() != 0 {
log::warn!(
target: TARGET,
"skipping MovePreimagesIntoBuckets: executed on wrong storage version.\
Expand Down

0 comments on commit db6b60e

Please sign in to comment.