Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ank4n committed May 13, 2024
1 parent 159d1bf commit 52ae957
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions substrate/frame/delegated-staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl pallet_staking::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Slash = ();
type Reward = ();
type SessionsPerEra = ConstU32<1>;
type SessionsPerEra = ConstU32<1>;
type SlashDeferDuration = ();
type AdminOrigin = frame_system::EnsureRoot<Self::AccountId>;
type BondingDuration = BondingDuration;
Expand Down Expand Up @@ -232,7 +232,11 @@ impl ExtBuilder {
ext.execute_with(test);
ext.execute_with(|| {
#[cfg(feature = "try-runtime")]
<AllPalletsWithSystem as frame_support::traits::TryState<u64>>::try_state(frame_system::Pallet::<Runtime>::block_number(), frame_support::traits::TryStateSelect::All).unwrap();
<AllPalletsWithSystem as frame_support::traits::TryState<u64>>::try_state(
frame_system::Pallet::<Runtime>::block_number(),
frame_support::traits::TryStateSelect::All,
)
.unwrap();
#[cfg(not(feature = "try-runtime"))]
DelegatedStaking::do_try_state().unwrap();
});
Expand Down

0 comments on commit 52ae957

Please sign in to comment.