From 18cf4f949379b8573b4c234e7f90621c39660d07 Mon Sep 17 00:00:00 2001 From: Christina <156356273+cratiu222@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:23:28 +0300 Subject: [PATCH 1/4] Update mod.rs --- codegen/src/api/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 7a8e8eee2f..7302501e5f 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -253,7 +253,7 @@ impl RuntimeGenerator { // Runtime APIs in the metadata by name. pub static RUNTIME_APIS: [&str; #runtime_api_names_len] = [ #(#runtime_api_names,)* ]; - /// The error type returned when there is a runtime issue. + /// The error type is returned when there is a runtime issue. pub type DispatchError = #types_mod_ident::sp_runtime::DispatchError; /// The outer event enum. From c3b073ed183025d1111d420432e38701f7ee5ef8 Mon Sep 17 00:00:00 2001 From: Christina <156356273+cratiu222@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:28:59 +0300 Subject: [PATCH 2/4] Update extrinsics.rs --- core/src/blocks/extrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/blocks/extrinsics.rs b/core/src/blocks/extrinsics.rs index 0af853fc8b..b8afeca47d 100644 --- a/core/src/blocks/extrinsics.rs +++ b/core/src/blocks/extrinsics.rs @@ -691,7 +691,7 @@ mod tests { .expect("Valid dynamic parameters are provided"); // Note: `create_unsigned` produces the extrinsic bytes by prefixing the extrinsic length. - // The length is handled deserializing `ChainBlockExtrinsic`, therefore the first byte is not needed. + // The length is handled by deserializing `ChainBlockExtrinsic`, therefore the first byte is not needed. let extrinsic = ExtrinsicDetails::::decode_from( 1, tx_encoded.encoded(), From 639cbe83fae1dfc14a50a0b6d65c5dbf88bef877 Mon Sep 17 00:00:00 2001 From: Christina <156356273+cratiu222@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:32:39 +0300 Subject: [PATCH 3/4] Update address.rs --- core/src/custom_values/address.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/custom_values/address.rs b/core/src/custom_values/address.rs index 73100dde56..6bbacaed68 100644 --- a/core/src/custom_values/address.rs +++ b/core/src/custom_values/address.rs @@ -11,7 +11,7 @@ use derive_where::derive_where; /// Use this with [`Address::IsDecodable`]. pub use crate::utils::Yes; -/// This represents the address of a custom value in in the metadata. +/// This represents the address of a custom value in the metadata. /// Anything that implements it can be used to fetch custom values from the metadata. /// The trait is implemented by [`str`] for dynamic lookup and [`StaticAddress`] for static queries. pub trait Address { From 6423079a4c2b010e3a2d3eaa82d21f8758a11d24 Mon Sep 17 00:00:00 2001 From: Christina <156356273+cratiu222@users.noreply.github.com> Date: Mon, 23 Sep 2024 17:15:01 +0300 Subject: [PATCH 4/4] Update codegen/src/api/mod.rs Co-authored-by: James Wilson --- codegen/src/api/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 7302501e5f..2fed7a59ea 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -253,7 +253,7 @@ impl RuntimeGenerator { // Runtime APIs in the metadata by name. pub static RUNTIME_APIS: [&str; #runtime_api_names_len] = [ #(#runtime_api_names,)* ]; - /// The error type is returned when there is a runtime issue. + /// The error type that is returned when there is a runtime issue. pub type DispatchError = #types_mod_ident::sp_runtime::DispatchError; /// The outer event enum.