docs: fix typos (#1776)

* Update mod.rs

* Update extrinsics.rs

* Update address.rs

* Update codegen/src/api/mod.rs

Co-authored-by: James Wilson <james@jsdw.me>

---------

Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
Christina
2024-09-30 13:53:48 +03:00
committed by GitHub
parent 7dff932382
commit ec3349b3cd
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 that is returned when there is a runtime issue.
pub type DispatchError = #types_mod_ident::sp_runtime::DispatchError;
/// The outer event enum.
+1 -1
View File
@@ -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::<SubstrateConfig>::decode_from(
1,
tx_encoded.encoded(),
+1 -1
View File
@@ -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 {