mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 14:01:06 +00:00
Use ‘#[module]’ and implement session for Kusama
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user