Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
kostekIV committed Nov 24, 2022
commit ef37cc8cfda1ba7fa4835e6394cf9ce024ce9336
2 changes: 2 additions & 0 deletions pallets/elections/src/migrations/v1_to_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use frame_support::{
#[cfg(feature = "try-runtime")]
use pallets_support::ensure_storage_version;
use pallets_support::StorageMigration;
#[cfg(feature = "try-runtime")]
use sp_std::vec::Vec;

use crate::{migrations::Validators, Config, EraValidators};

Expand Down
2 changes: 2 additions & 0 deletions pallets/elections/src/migrations/v2_to_v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use frame_support::{
use pallets_support::ensure_storage_version;
use pallets_support::StorageMigration;
use primitives::CommitteeSeats;
#[cfg(feature = "try-runtime")]
use sp_std::vec::Vec;

use crate::{migrations::Validators, Config, EraValidators};

Expand Down
2 changes: 2 additions & 0 deletions pallets/support/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use frame_support::{
pallet_prelude::{PalletInfoAccess, StorageVersion, Weight},
traits::OnRuntimeUpgrade,
};
#[cfg(feature = "try-runtime")]
use sp_std::vec::Vec;

/// In order to run both pre- and post- checks around every migration, we entangle methods of
/// `OnRuntimeUpgrade` into the desired flow and expose it with `migrate` method.
Expand Down