remove unused staking trait bound (#11942)

This commit is contained in:
Kian Paimani
2022-08-01 11:44:56 +01:00
committed by GitHub
parent 658b179686
commit f73ce5795c
5 changed files with 3 additions and 38 deletions
+1 -10
View File
@@ -33,7 +33,7 @@ use sp_core::H256;
use sp_io;
use sp_runtime::{
curve::PiecewiseLinear,
testing::{Header, TestXt, UintAuthorityId},
testing::{Header, UintAuthorityId},
traits::{IdentityLookup, Zero},
};
use sp_staking::offence::{DisableStrategy, OffenceDetails, OnOffenceHandler};
@@ -304,15 +304,6 @@ impl crate::pallet::pallet::Config for Test {
type WeightInfo = ();
}
impl<LocalCall> frame_system::offchain::SendTransactionTypes<LocalCall> for Test
where
Call: From<LocalCall>,
{
type OverarchingCall = Call;
type Extrinsic = Extrinsic;
}
pub type Extrinsic = TestXt<Call, ()>;
pub(crate) type StakingCall = crate::Call<Test>;
pub(crate) type TestRuntimeCall = <Test as frame_system::Config>::Call;
+2 -2
View File
@@ -27,7 +27,7 @@ use frame_support::{
},
weights::Weight,
};
use frame_system::{ensure_root, ensure_signed, offchain::SendTransactionTypes, pallet_prelude::*};
use frame_system::{ensure_root, ensure_signed, pallet_prelude::*};
use sp_runtime::{
traits::{CheckedSub, SaturatedConversion, StaticLookup, Zero},
Perbill, Percent,
@@ -73,7 +73,7 @@ pub mod pallet {
}
#[pallet::config]
pub trait Config: frame_system::Config + SendTransactionTypes<Call<Self>> {
pub trait Config: frame_system::Config {
/// The staking balance.
type Currency: LockableCurrency<
Self::AccountId,