Use ‘#[module]’ and implement session for Kusama

This commit is contained in:
Demi M. Obenour
2020-05-17 15:34:50 -04:00
parent 122260ff59
commit ffbffd44eb
3 changed files with 20 additions and 7 deletions
+6
View File
@@ -31,6 +31,7 @@ use crate::frame::{
Balances,
},
contracts::Contracts,
session::Session,
system::System,
};
@@ -82,6 +83,11 @@ impl System for KusamaRuntime {
type AccountData = AccountData<<Self as Balances>::Balance>;
}
impl Session for KusamaRuntime {
type SessionIndex = u32;
type ValidatorId = <Self as System>::AccountId;
}
impl Balances for KusamaRuntime {
type Balance = u128;
}