diff --git a/prdoc/prdoc/pr_6715.prdoc b/prdoc/prdoc/pr_6715.prdoc index ee4f6a157af4..1219f3d10228 100644 --- a/prdoc/prdoc/pr_6715.prdoc +++ b/prdoc/prdoc/pr_6715.prdoc @@ -11,4 +11,4 @@ doc: crates: - name: pallet-nomination-pools - bump: minor \ No newline at end of file + bump: major \ No newline at end of file diff --git a/substrate/frame/nomination-pools/src/lib.rs b/substrate/frame/nomination-pools/src/lib.rs index 379189601643..27e3e0b54b82 100644 --- a/substrate/frame/nomination-pools/src/lib.rs +++ b/substrate/frame/nomination-pools/src/lib.rs @@ -1568,7 +1568,9 @@ impl Get for TotalUnbondingPools { pub mod pallet { use super::*; use frame_support::traits::StorageVersion; - use frame_system::pallet_prelude::{ensure_root, ensure_signed, OriginFor}; + use frame_system::pallet_prelude::{ + ensure_root, ensure_signed, BlockNumberFor as SystemBlockNumberFor, OriginFor, + }; use sp_runtime::Perbill; /// The in-code storage version. @@ -3098,11 +3100,9 @@ pub mod pallet { } #[pallet::hooks] - impl Hooks> for Pallet { + impl Hooks> for Pallet { #[cfg(feature = "try-runtime")] - fn try_state( - _n: frame_system::pallet_prelude::BlockNumberFor, - ) -> Result<(), TryRuntimeError> { + fn try_state(_n: SystemBlockNumberFor) -> Result<(), TryRuntimeError> { Self::do_try_state(u8::MAX) }