Custom extra (#89)

* Run rustfmt.

* Make extra customizable.

* Update to alpha 6.
This commit is contained in:
David Craven
2020-04-15 09:21:19 +02:00
committed by GitHub
parent bb465782dc
commit 8cf652605f
5 changed files with 101 additions and 86 deletions
+6 -2
View File
@@ -40,6 +40,7 @@ use sp_runtime::{
MaybeSerialize,
MaybeSerializeDeserialize,
Member,
SignedExtension,
SimpleBitOps,
},
RuntimeDebug,
@@ -51,6 +52,7 @@ use std::{
use crate::{
error::Error,
extrinsic::SignedExtra,
frame::{
balances::Balances,
Call,
@@ -157,8 +159,10 @@ pub trait SystemStore {
) -> Pin<Box<dyn Future<Output = Result<AccountInfo<Self::System>, Error>> + Send>>;
}
impl<T: System + Balances + Sync + Send + 'static, S: 'static> SystemStore
for Client<T, S>
impl<T: System + Balances + Sync + Send + 'static, S: 'static, E> SystemStore
for Client<T, S, E>
where
E: SignedExtra<T> + SignedExtension + 'static,
{
type System = T;