diff --git a/pallets/vesting-mbm/src/benchmarks.rs b/pallets/vesting-mbm/src/benchmarks.rs index 0a773207e0..c0d401bcb0 100644 --- a/pallets/vesting-mbm/src/benchmarks.rs +++ b/pallets/vesting-mbm/src/benchmarks.rs @@ -20,8 +20,9 @@ use crate::{Config, Pallet}; use frame_benchmarking::v2::*; -use frame_support::traits::Currency; -use frame_support::{assert_ok, migrations::SteppedMigration, weights::WeightMeter}; +use frame_support::{ + assert_ok, migrations::SteppedMigration, traits::Currency, weights::WeightMeter, +}; use pallet_vesting::VestingInfo; use sp_runtime::traits::StaticLookup; use sp_std::vec; @@ -49,7 +50,6 @@ mod benches { #[block] { - // start from some cursor to avoid counting prefix read crate::LazyMigration::>::step(None, &mut meter) .unwrap(); } diff --git a/pallets/vesting-mbm/src/mock.rs b/pallets/vesting-mbm/src/mock.rs index dc4896a987..61f83c08ad 100644 --- a/pallets/vesting-mbm/src/mock.rs +++ b/pallets/vesting-mbm/src/mock.rs @@ -60,9 +60,6 @@ parameter_types! { #[derive_impl(pallet_migrations::config_preludes::TestDefaultConfig)] impl pallet_migrations::Config for Runtime { - // #[cfg(feature = "runtime-benchmarks")] - // type Migrations = pallet_migrations::mock_helpers::MockedMigrations; - // #[cfg(not(feature = "runtime-benchmarks"))] type Migrations = (crate::LazyMigration>,); type MigrationStatusHandler = (); type MaxServiceWeight = MaxServiceWeight;