mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Merge branch 'master' into dp-prep-release-v0.13
* master: Remove unnecessary Sync requirements (#172)
This commit is contained in:
@@ -50,7 +50,7 @@ pub trait Signer<T: Runtime> {
|
||||
fn sign(
|
||||
&self,
|
||||
extrinsic: SignedPayload<T>,
|
||||
) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send + Sync>>;
|
||||
) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send>>;
|
||||
}
|
||||
|
||||
/// Extrinsic signer using a private key.
|
||||
@@ -100,8 +100,7 @@ impl<T, P> Signer<T> for PairSigner<T, P>
|
||||
where
|
||||
T: Runtime,
|
||||
T::AccountId: Into<T::Address> + 'static,
|
||||
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned:
|
||||
Send + Sync,
|
||||
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send,
|
||||
P: Pair + 'static,
|
||||
P::Signature: Into<T::Signature> + 'static,
|
||||
{
|
||||
@@ -116,8 +115,7 @@ where
|
||||
fn sign(
|
||||
&self,
|
||||
extrinsic: SignedPayload<T>,
|
||||
) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send + Sync>>
|
||||
{
|
||||
) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send>> {
|
||||
let signature = extrinsic.using_encoded(|payload| self.signer.sign(payload));
|
||||
let (call, extra, _) = extrinsic.deconstruct();
|
||||
let extrinsic = UncheckedExtrinsic::<T>::new_signed(
|
||||
|
||||
Reference in New Issue
Block a user