From 11fb7d12da42ddd6656484e894247d8a5535219d Mon Sep 17 00:00:00 2001 From: Minqi Wang Date: Fri, 3 Jan 2025 15:50:13 +0800 Subject: [PATCH] chore: fix --- parachain/runtime/litentry/src/migration/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parachain/runtime/litentry/src/migration/mod.rs b/parachain/runtime/litentry/src/migration/mod.rs index 329c90a8b4..4ad2b5bb27 100644 --- a/parachain/runtime/litentry/src/migration/mod.rs +++ b/parachain/runtime/litentry/src/migration/mod.rs @@ -55,7 +55,9 @@ use pallet_scheduler::Agenda; use sp_std::marker::PhantomData; #[cfg(feature = "try-runtime")] use sp_std::vec::Vec; + extern crate alloc; +use alloc::collections::btree_map::BTreeMap; pub type Migrations = ( // Scheduler V0 => V4 @@ -167,7 +169,6 @@ where /// The original data layout of the preimage pallet without a specific version number. mod preimage_helper { - use alloc::collections::btree_map::BTreeMap; use frame_support::{pallet_prelude::*, storage_alias, traits::Currency}; type BalanceOf = <::Currency as Currency< @@ -220,13 +221,12 @@ 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::>() != 0 { log::warn!( - target: TARGET, + target: PREIMAGE_LOG_TARGET, "skipping MovePreimagesIntoBuckets: executed on wrong storage version.\ Expected version 0" );