diff --git a/historic/src/client/online_client.rs b/historic/src/client/online_client.rs index e508543fa0..bb0c4a28e3 100644 --- a/historic/src/client/online_client.rs +++ b/historic/src/client/online_client.rs @@ -292,7 +292,7 @@ async fn get_metadata( })?; // Option because we may have asked for a version that doesn't exist. Compact because we get back a Vec - // of the metadata bytes, and the Vec is preceeded by it's compact encoded length. The actual bytes are then + // of the metadata bytes, and the Vec is preceded by it's compact encoded length. The actual bytes are then // decoded as a `RuntimeMetadataPrefixed`, after this. let (_, metadata) = , RuntimeMetadataPrefixed)>>::decode(&mut &rpc_response[..]) .map_err(|e| OnlineClientAtBlockError::CannotGetMetadata { diff --git a/historic/src/error.rs b/historic/src/error.rs index ed49961d64..520b52ecf4 100644 --- a/historic/src/error.rs +++ b/historic/src/error.rs @@ -30,7 +30,7 @@ pub enum Error { StorageValueError(#[from] StorageValueError), } -/// Errors consctructing an online client. +/// Errors constructing an online client. #[allow(missing_docs)] #[derive(Debug, thiserror::Error)] #[non_exhaustive] diff --git a/metadata/src/utils/validation.rs b/metadata/src/utils/validation.rs index 7ad7245205..1944513280 100644 --- a/metadata/src/utils/validation.rs +++ b/metadata/src/utils/validation.rs @@ -921,14 +921,14 @@ mod tests { // Build metadata with both pallets. let metadata_both = pallets_to_metadata(pallets); - // Hashing will ignore any non-existant pallet and return the same result. + // Hashing will ignore any non-existent pallet and return the same result. let hash = MetadataHasher::new(&metadata_one) .only_these_pallets(&["First", "Second"]) .hash(); let hash_rhs = MetadataHasher::new(&metadata_one) .only_these_pallets(&["First"]) .hash(); - assert_eq!(hash, hash_rhs, "hashing should ignore non-existant pallets"); + assert_eq!(hash, hash_rhs, "hashing should ignore non-existent pallets"); // Hashing one pallet from metadata with 2 pallets inserted will ignore the second pallet. let hash_second = MetadataHasher::new(&metadata_both)