mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 06:31:03 +00:00
Trait cleanups
This commit is contained in:
+2
-7
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user