Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dharjeezy committed Dec 1, 2024
1 parent 139bab6 commit 04559e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion prdoc/prdoc/pr_6715.prdoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ doc:

crates:
- name: pallet-nomination-pools
bump: minor
bump: major
10 changes: 5 additions & 5 deletions substrate/frame/nomination-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,9 @@ impl<T: Config> Get<u32> for TotalUnbondingPools<T> {
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.
Expand Down Expand Up @@ -3098,11 +3100,9 @@ pub mod pallet {
}

#[pallet::hooks]
impl<T: Config> Hooks<frame_system::pallet_prelude::BlockNumberFor<T>> for Pallet<T> {
impl<T: Config> Hooks<SystemBlockNumberFor<T>> for Pallet<T> {
#[cfg(feature = "try-runtime")]
fn try_state(
_n: frame_system::pallet_prelude::BlockNumberFor<T>,
) -> Result<(), TryRuntimeError> {
fn try_state(_n: SystemBlockNumberFor<T>) -> Result<(), TryRuntimeError> {
Self::do_try_state(u8::MAX)
}

Expand Down

0 comments on commit 04559e1

Please sign in to comment.