File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ async fn get_metadata<T: Config>(
292292 } ) ?;
293293
294294 // Option because we may have asked for a version that doesn't exist. Compact because we get back a Vec<u8>
295- // of the metadata bytes, and the Vec is preceeded by it's compact encoded length. The actual bytes are then
295+ // of the metadata bytes, and the Vec is preceded by it's compact encoded length. The actual bytes are then
296296 // decoded as a `RuntimeMetadataPrefixed`, after this.
297297 let ( _, metadata) = <Option < ( Compact < u32 > , RuntimeMetadataPrefixed ) > >:: decode ( & mut & rpc_response[ ..] )
298298 . map_err ( |e| OnlineClientAtBlockError :: CannotGetMetadata {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub enum Error {
3030 StorageValueError ( #[ from] StorageValueError ) ,
3131}
3232
33- /// Errors consctructing an online client.
33+ /// Errors constructing an online client.
3434#[ allow( missing_docs) ]
3535#[ derive( Debug , thiserror:: Error ) ]
3636#[ non_exhaustive]
Original file line number Diff line number Diff line change @@ -921,14 +921,14 @@ mod tests {
921921 // Build metadata with both pallets.
922922 let metadata_both = pallets_to_metadata ( pallets) ;
923923
924- // Hashing will ignore any non-existant pallet and return the same result.
924+ // Hashing will ignore any non-existent pallet and return the same result.
925925 let hash = MetadataHasher :: new ( & metadata_one)
926926 . only_these_pallets ( & [ "First" , "Second" ] )
927927 . hash ( ) ;
928928 let hash_rhs = MetadataHasher :: new ( & metadata_one)
929929 . only_these_pallets ( & [ "First" ] )
930930 . hash ( ) ;
931- assert_eq ! ( hash, hash_rhs, "hashing should ignore non-existant pallets" ) ;
931+ assert_eq ! ( hash, hash_rhs, "hashing should ignore non-existent pallets" ) ;
932932
933933 // Hashing one pallet from metadata with 2 pallets inserted will ignore the second pallet.
934934 let hash_second = MetadataHasher :: new ( & metadata_both)
You can’t perform that action at this time.
0 commit comments