mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Remove impl of Signer for Box<dyn Signer + Send + Sync>
It isn’t needed, since Box implements Deref.
This commit is contained in:
@@ -147,35 +147,3 @@ where
|
||||
)))
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, S, E> Signer<T, S, E> for Box<dyn Signer<T, S, E> + Send + Sync>
|
||||
where
|
||||
T: System,
|
||||
S: Encode,
|
||||
E: SignedExtra<T>,
|
||||
{
|
||||
fn account_id(&self) -> &T::AccountId {
|
||||
(**self).account_id()
|
||||
}
|
||||
|
||||
fn nonce(&self) -> Option<T::Index> {
|
||||
(**self).nonce()
|
||||
}
|
||||
|
||||
fn sign(
|
||||
&self,
|
||||
extrinsic: SignedPayload<Encoded, E::Extra>,
|
||||
) -> Pin<
|
||||
Box<
|
||||
dyn Future<
|
||||
Output = Result<
|
||||
UncheckedExtrinsic<T::Address, Encoded, S, E::Extra>,
|
||||
String,
|
||||
>,
|
||||
> + Send
|
||||
+ Sync,
|
||||
>,
|
||||
> {
|
||||
(**self).sign(extrinsic)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user