Trait cleanups

This commit is contained in:
Demi M. Obenour
2020-05-28 20:50:20 -04:00
parent 9fd294922f
commit e3e30cf7bb
+2 -7
View File
@@ -31,7 +31,6 @@ use sp_runtime::{
}, },
traits::{ traits::{
IdentifyAccount, IdentifyAccount,
SignedExtension,
Verify, Verify,
}, },
}; };
@@ -42,10 +41,7 @@ use std::{
}; };
/// Extrinsic signer. /// Extrinsic signer.
pub trait Signer<T: System, S: Encode, E: SignedExtra<T>> pub trait Signer<T: System, S: Encode, E: SignedExtra<T>>: Send + Sync {
where
<<E as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
{
/// Returns the account id. /// Returns the account id.
fn account_id(&self) -> &T::AccountId; fn account_id(&self) -> &T::AccountId;
@@ -115,10 +111,9 @@ where
T: System + 'static, T: System + 'static,
T::AccountId: Into<T::Address> + 'static, T::AccountId: Into<T::Address> + 'static,
S: Encode + 'static + Send + Sync, S: Encode + 'static + Send + Sync,
E: SignedExtra<T> + 'static, E: SignedExtra<T> + 'static + Send + Sync,
P: Pair + 'static, P: Pair + 'static,
P::Signature: Into<S> + 'static, P::Signature: Into<S> + 'static,
<<E as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
{ {
fn account_id(&self) -> &T::AccountId { fn account_id(&self) -> &T::AccountId {
&self.account_id &self.account_id