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
+3 -3
View File
@@ -44,8 +44,8 @@ use crate::{
Error,
};
/// A reasonable default for `era_period`
pub const DEFAULT_ERA_PERIOD: u64 = 64;
/// A reasonable default for `mortal_period`
pub const DEFAULT_MORTAL_PERIOD: u64 = 64;
/// UncheckedExtrinsic type.
pub type UncheckedExtrinsic<T> = sp_runtime::generic::UncheckedExtrinsic<
@@ -65,7 +65,7 @@ pub async fn create_signed<T>(
nonce: T::Index,
call: Encoded,
signer: &(dyn Signer<T> + Send + Sync),
era_info: (Era, T::Hash),
era_info: (Era, Option<T::Hash>),
) -> Result<UncheckedExtrinsic<T>, Error>
where
T: Runtime,