From 78f71ddfc43d2f40027eda37ba7d80accd4f488e Mon Sep 17 00:00:00 2001 From: snoppy Date: Mon, 18 Mar 2024 13:14:25 +0800 Subject: [PATCH] fix typos --- changelog/js-sdk.md | 2 +- contracts/README.md | 2 +- core/README.md | 2 +- core/bin/zksync_api/src/api_server/forced_exit_checker.rs | 2 +- core/bin/zksync_api/src/api_server/tx_sender.rs | 2 +- core/bin/zksync_core/src/state_keeper/mod.rs | 2 +- core/lib/circuit/benches/criterion/transfer.rs | 2 +- core/lib/circuit/src/circuit.rs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/changelog/js-sdk.md b/changelog/js-sdk.md index 017d08178a..edd931f2b9 100644 --- a/changelog/js-sdk.md +++ b/changelog/js-sdk.md @@ -34,7 +34,7 @@ All notable changes to `zksync.js` will be documented in this file. - `SyncProvider` interface: common interface for API v0.2 `RestProvider` and JSON RPC `Provider`. - Types for REST API v0.2. -- `RestProvider` class, that is used for queriing REST API v0.2. +- `RestProvider` class, that is used for querying REST API v0.2. - `SyncProvider` interface: common interface for API v0.2 `RestProvider` and JSON RPC `Provider`. - Types for REST API v0.2. diff --git a/contracts/README.md b/contracts/README.md index 2b91d4b7a2..4cc17e131a 100644 --- a/contracts/README.md +++ b/contracts/README.md @@ -11,4 +11,4 @@ zkSync strictly inherits the security assumptions of L1 [here](https://zksync.io ## Changelog -The changelog of the contracts is avaliable [here](/changelog/contracts.md). +The changelog of the contracts is available [here](/changelog/contracts.md). diff --git a/core/README.md b/core/README.md index 871c17f79e..cd76781e3e 100644 --- a/core/README.md +++ b/core/README.md @@ -11,4 +11,4 @@ You can read description of the API provided [here](https://zksync.io/api/). ## Changelog -The changelog of the contracts is avaliable [here](/changelog/core.md). +The changelog of the contracts is available [here](/changelog/core.md). diff --git a/core/bin/zksync_api/src/api_server/forced_exit_checker.rs b/core/bin/zksync_api/src/api_server/forced_exit_checker.rs index 4f030bec52..871281bd84 100644 --- a/core/bin/zksync_api/src/api_server/forced_exit_checker.rs +++ b/core/bin/zksync_api/src/api_server/forced_exit_checker.rs @@ -24,7 +24,7 @@ pub trait ForcedExitAccountAgeChecker { #[derive(Clone)] pub struct ForcedExitChecker { - /// Mimimum age of the account for `ForcedExit` operations to be allowed. + /// Minimum age of the account for `ForcedExit` operations to be allowed. pub forced_exit_minimum_account_age: chrono::Duration, } diff --git a/core/bin/zksync_api/src/api_server/tx_sender.rs b/core/bin/zksync_api/src/api_server/tx_sender.rs index 31f45a1a8c..4ee33e7eda 100644 --- a/core/bin/zksync_api/src/api_server/tx_sender.rs +++ b/core/bin/zksync_api/src/api_server/tx_sender.rs @@ -178,7 +178,7 @@ impl TxSender { } } - /// If `ForcedExit` has Ethereum siganture (e.g. it's a part of a batch), an actual signer + /// If `ForcedExit` has Ethereum signature (e.g. it's a part of a batch), an actual signer /// is initiator, not the target, thus, this function will perform a database query to acquire /// the corresponding address. async fn get_tx_sender(&self, tx: &ZkSyncTx) -> Result { diff --git a/core/bin/zksync_core/src/state_keeper/mod.rs b/core/bin/zksync_core/src/state_keeper/mod.rs index d2cd1a5d0b..cef1feb7f8 100644 --- a/core/bin/zksync_core/src/state_keeper/mod.rs +++ b/core/bin/zksync_core/src/state_keeper/mod.rs @@ -777,7 +777,7 @@ impl ZkSyncStateKeeper { // TODO (ZKS-821): Currently the logic of this procedure is obscure and error-prone. // I've met multiple bugs trying to adapt it because it works at the same time with the "old" // pending block and "new" pending block. Actions "create block to be sealed" and "update pending block" - // should be spearated. + // should be separated. let current_block = self.pending_block.number; let next_unprocessed_priority_op = self.pending_block.unprocessed_priority_op_current; let new_pending_block = PendingBlock::new( diff --git a/core/lib/circuit/benches/criterion/transfer.rs b/core/lib/circuit/benches/criterion/transfer.rs index 10958e51c5..a17af6659f 100644 --- a/core/lib/circuit/benches/criterion/transfer.rs +++ b/core/lib/circuit/benches/criterion/transfer.rs @@ -10,7 +10,7 @@ use zksync_circuit::witness::transfer::TransferWitness; type TransferWitnessBn256 = TransferWitness; -/// Measures the time of trasfer apply tx +/// Measures the time of transfer apply tx fn transfer_apply_tx(b: &mut Bencher<'_>, number_of_accounts: &usize) { let accounts = generate_accounts(*number_of_accounts); let account_from = &accounts[0]; diff --git a/core/lib/circuit/src/circuit.rs b/core/lib/circuit/src/circuit.rs index ce8eeb12d1..22b1484435 100644 --- a/core/lib/circuit/src/circuit.rs +++ b/core/lib/circuit/src/circuit.rs @@ -4397,7 +4397,7 @@ pub fn check_account_data>( } /// Account tree state will be extended in the future, so for current balance tree we -/// append emtpy hash to reserve place for the future tree before hashing. +/// append empty hash to reserve place for the future tree before hashing. pub fn calc_account_state_tree_root>( mut cs: CS, balance_root: &CircuitElement,