Update to set mortal_period in client

This commit is contained in:
emostov
2020-12-14 14:09:11 -08:00
parent 47911b8a02
commit eef192925b
7 changed files with 51 additions and 45 deletions
+2 -6
View File
@@ -64,7 +64,6 @@ pub fn call(s: Structure) -> TokenStream {
fn #call<'a>(
&'a self,
signer: &'a (dyn #subxt::Signer<T> + Send + Sync),
opts: #subxt::SignedOptions,
#args
) -> core::pin::Pin<Box<dyn core::future::Future<Output = Result<T::Hash, #subxt::Error>> + Send + 'a>>;
@@ -72,7 +71,6 @@ pub fn call(s: Structure) -> TokenStream {
fn #call_and_watch<'a>(
&'a self,
signer: &'a (dyn #subxt::Signer<T> + Send + Sync),
opts: #subxt::SignedOptions,
#args
) -> core::pin::Pin<Box<dyn core::future::Future<Output = Result<#subxt::ExtrinsicSuccess<T>, #subxt::Error>> + Send + 'a>>;
}
@@ -84,21 +82,19 @@ pub fn call(s: Structure) -> TokenStream {
fn #call<'a>(
&'a self,
signer: &'a (dyn #subxt::Signer<T> + Send + Sync),
opts: #subxt::SignedOptions,
#args
) -> core::pin::Pin<Box<dyn core::future::Future<Output = Result<T::Hash, #subxt::Error>> + Send + 'a>> {
let #marker = core::marker::PhantomData::<T>;
Box::pin(self.submit(#build_struct, signer, opts))
Box::pin(self.submit(#build_struct, signer))
}
fn #call_and_watch<'a>(
&'a self,
signer: &'a (dyn #subxt::Signer<T> + Send + Sync),
opts: #subxt::SignedOptions,
#args
) -> core::pin::Pin<Box<dyn core::future::Future<Output = Result<#subxt::ExtrinsicSuccess<T>, #subxt::Error>> + Send + 'a>> {
let #marker = core::marker::PhantomData::<T>;
Box::pin(self.watch(#build_struct, signer, opts))
Box::pin(self.watch(#build_struct, signer))
}
}
}