From 79b78893eb8c8e546cc8aaecc728a170cb4afa9f Mon Sep 17 00:00:00 2001 From: joke123321 <168152821+joke123321@users.noreply.github.com> Date: Sun, 28 Apr 2024 17:33:00 +0800 Subject: [PATCH] chore: fix typos --- domains/pallets/executive/src/lib.rs | 2 +- domains/pallets/messenger/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/domains/pallets/executive/src/lib.rs b/domains/pallets/executive/src/lib.rs index 9586664b4f..7523f2f3d2 100644 --- a/domains/pallets/executive/src/lib.rs +++ b/domains/pallets/executive/src/lib.rs @@ -392,7 +392,7 @@ where }); // Note the storage root before finalizing the block so that the block imported during the - // syncing processs produces the same storage root with the one processed based on + // syncing process produces the same storage root with the one processed based on // the consensus block. Pallet::::push_root(Self::storage_root()); diff --git a/domains/pallets/messenger/src/lib.rs b/domains/pallets/messenger/src/lib.rs index 19faeb8f63..c9ff2c3e5c 100644 --- a/domains/pallets/messenger/src/lib.rs +++ b/domains/pallets/messenger/src/lib.rs @@ -855,13 +855,13 @@ mod pallet { MessageWeightTag::EndpointRequest(endpoint) => { T::get_endpoint_handler(endpoint) .map(|endpoint_handler| endpoint_handler.message_weight()) - // If there is no endpoint handler the request won't be handled thus reture zero weight + // If there is no endpoint handler the request won't be handled thus return zero weight .unwrap_or(Weight::zero()) } MessageWeightTag::EndpointResponse(endpoint) => { T::get_endpoint_handler(endpoint) .map(|endpoint_handler| endpoint_handler.message_response_weight()) - // If there is no endpoint handler the request won't be handled thus reture zero weight + // If there is no endpoint handler the request won't be handled thus return zero weight .unwrap_or(Weight::zero()) } MessageWeightTag::None => Weight::zero(),