diff --git a/src/lib.rs b/src/lib.rs index 541e250c34..8f6a24d635 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -217,14 +217,14 @@ impl ClientBuilder { runtime_version: runtime_version?, _marker: PhantomData, page_size: self.page_size.unwrap_or(10), - signed_options: ClientSignedOptions { mortal_period }, + signed_options: SigningOptions { mortal_period }, }) } } /// Construction options for a signed extrinsic #[derive(Copy, Clone)] -struct ClientSignedOptions { +struct SigningOptions { /// The period of validity, measured in blocks, that an extrinsic will live for, starting from a checkpoint /// block. /// @@ -242,7 +242,7 @@ pub struct Client { runtime_version: RuntimeVersion, _marker: PhantomData<(fn() -> T::Signature, T::Extra)>, page_size: u32, - signed_options: ClientSignedOptions, + signed_options: SigningOptions, } impl Clone for Client { diff --git a/src/metadata.rs b/src/metadata.rs index 3281d45439..a73a49a21d 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -41,7 +41,7 @@ use sp_core::storage::StorageKey; use crate::Encoded; /// 5 min `mortal_period` in milliseconds, to be adjusted based on expected block time -pub const BASELINE_MORTAL_PERIOD: u64 = 5 * 60 * 1000; +const BASELINE_MORTAL_PERIOD: u64 = 5 * 60 * 1000; /// Metadata error. #[derive(Debug, thiserror::Error)]