export more types from fast-untsake 🤦‍♂️ (#12353)

* export more types from fast-untsake 🤦‍♂️

* make non-test

* fmt
This commit is contained in:
Kian Paimani
2022-09-27 08:08:14 +01:00
committed by GitHub
parent 4c19c13d05
commit 4dd6fc86e1
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -60,7 +60,7 @@ mod tests;
// NOTE: enable benchmarking in tests as well.
#[cfg(feature = "runtime-benchmarks")]
mod benchmarking;
mod types;
pub mod types;
pub mod weights;
pub const LOG_TARGET: &'static str = "runtime::fast-unstake";
@@ -90,6 +90,7 @@ pub mod pallet {
};
use sp_staking::EraIndex;
use sp_std::{prelude::*, vec::Vec};
pub use types::PreventStakingOpsIfUnbonding;
pub use weights::WeightInfo;
#[derive(scale_info::TypeInfo, codec::Encode, codec::Decode, codec::MaxEncodedLen)]
@@ -47,7 +47,6 @@ pub struct UnstakeRequest<AccountId: Eq + PartialEq + Debug, MaxChecked: Get<u32
#[scale_info(skip_type_params(T))]
pub struct PreventStakingOpsIfUnbonding<T: Config + Send + Sync>(sp_std::marker::PhantomData<T>);
#[cfg(test)]
impl<T: Config + Send + Sync> PreventStakingOpsIfUnbonding<T> {
pub fn new() -> Self {
Self(Default::default())