Skip to content

Commit b59b800

Browse files
authored
Merge pull request #3705 from letreturn/main
chore: fix some typos in comment
2 parents 1dea794 + ec002e4 commit b59b800

File tree

3 files changed

+7
-7
lines changed
  • crates/pallet-domains/src
  • domains/client/relayer/src
  • test/subspace-test-service/src

3 files changed

+7
-7
lines changed

crates/pallet-domains/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ fn test_bundle_format_verification() {
834834
BundleError::InvalidExtrinsicRoot
835835
);
836836

837-
// Bundle with addtional extrinsic
837+
// Bundle with additional extrinsics
838838
let mut invalid_extrinsic_root_bundle = valid_bundle.clone();
839839
let mut extrinsics = valid_bundle.extrinsics().to_vec();
840840
extrinsics.push(opaque_extrinsic(4, 4));

domains/client/relayer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ where
299299
+ RelayerApi<CBlock, NumberFor<CBlock>, NumberFor<CBlock>, CBlock::Hash>,
300300
Client::Api: RelayerApi<Block, NumberFor<Block>, NumberFor<CBlock>, CBlock::Hash>,
301301
{
302-
// Since the block MMR leaf is included in the next block, we procees the XDM of block `confirmed_block_number - 1`
302+
// Since the block MMR leaf is included in the next block, we process the XDM of block `confirmed_block_number - 1`
303303
// and use the block `confirmed_block_number` to generate the MMR proof of block `confirmed_block_number - 1`
304304
let mmr_consensus_block = (
305305
confirmed_block_number,

test/subspace-test-service/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,8 @@ impl MockConsensusNode {
766766

767767
/// Wait for the operator finish processing the consensus block before return
768768
pub async fn confirm_block_import_processed(&mut self) {
769-
// Send one more notification to ensure the previous consensus block import notificaion
770-
// have received by the operator
769+
// Send one more notification to ensure the previous consensus block import notification
770+
// have been received by the operator
771771
let (acknowledgement_sender, mut acknowledgement_receiver) = mpsc::channel(0);
772772
{
773773
// Must drop `block_import_acknowledgement_sender` after the notification otherwise
@@ -1126,8 +1126,8 @@ impl MockConsensusNode {
11261126

11271127
let res = match self.import_block(block, Some(storage_changes)).await {
11281128
Ok(hash) => {
1129-
// Remove the tx of the imported block from the tx pool incase re-include them
1130-
// in the future block by accident.
1129+
// Remove the tx of the imported block from the tx pool, so we don't re-include
1130+
// them in future blocks by accident.
11311131
self.prune_txs_from_pool(tx_hashes.as_slice()).await?;
11321132
Ok(hash)
11331133
}
@@ -1146,7 +1146,7 @@ impl MockConsensusNode {
11461146
Ok(())
11471147
}
11481148

1149-
/// Produce a new block on top of the current best block, with the specificed extrinsics.
1149+
/// Produce a new block on top of the current best block, with the specified extrinsics.
11501150
#[sc_tracing::logging::prefix_logs_with(self.log_prefix)]
11511151
pub async fn produce_block_with_extrinsics(
11521152
&mut self,

0 commit comments

Comments
 (0)