Don’t impl ‘Staking’ for all ‘T: System’

This commit is contained in:
Demi M. Obenour
2020-05-17 15:50:02 -04:00
parent ffbffd44eb
commit 1b4dc07f77
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -114,7 +114,6 @@ impl Default for ValidatorPrefs {
/// The subset of the `frame::Trait` that a client must implement.
#[module]
pub trait Staking: System {}
impl<T: System> Staking for T {}
/// Just a Balance/BlockNumber tuple to encode when a chunk of funds will be unlocked.
#[derive(PartialEq, Eq, Clone, Encode, Decode)]
+2
View File
@@ -88,6 +88,8 @@ impl Session for KusamaRuntime {
type ValidatorId = <Self as System>::AccountId;
}
impl Staking for KusamaRuntime {}
impl Balances for KusamaRuntime {
type Balance = u128;
}