Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit 4f448f6

Browse files
authored
Fix: typos (#1727)
1 parent e26176d commit 4f448f6

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Diff for: zkevm-circuits/src/evm_circuit/execution/invalid_tx.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ mod test {
252252
CircuitTestBuilder::new_from_test_ctx(ctx).run();
253253
}
254254

255-
// Check diferent permutations to make sure all transitions work correctly
255+
// Check different permutations to make sure all transitions work correctly
256256
test_ok([false]);
257257
test_ok([true]);
258258
test_ok([false, false]);

Diff for: zkevm-circuits/src/keccak_circuit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl<F: Field> SubCircuitConfig<F> for KeccakCircuitConfig<F> {
308308
// multiple rows with lookups in a way that doesn't require any
309309
// extra additional cells or selectors we have to put all `s[i]`'s on the same
310310
// row. This isn't that strong of a requirement actually because we the
311-
// words are split into multipe parts, and so only the parts at the same
311+
// words are split into multiple parts, and so only the parts at the same
312312
// position of those words need to be on the same row.
313313
let target_word_sizes = target_part_sizes(part_size);
314314
let num_word_parts = target_word_sizes.len();

Diff for: zkevm-circuits/src/mpt_circuit/rlp_gadgets.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl<F: Field> RLPValueGadget<F> {
408408
self.is_long.rot(meta, rot)
409409
}
410410

411-
// RLP byte containing the lenght of the length,
411+
// RLP byte containing the length of the length,
412412
// followed by the length, followed by the actual data
413413
pub(crate) fn is_very_long(&self) -> Expression<F> {
414414
self.is_very_long.expr()
@@ -507,7 +507,7 @@ impl RLPValueWitness {
507507
self.is_long
508508
}
509509

510-
// RLP byte containing the lenght of the length,
510+
// RLP byte containing the length of the length,
511511
// followed by the length, followed by the actual data
512512
pub(crate) fn is_very_long(&self) -> bool {
513513
self.is_very_long
@@ -716,7 +716,7 @@ impl<F: Field> RLPItemGadget<F> {
716716
})
717717
}
718718

719-
// RLP byte containing the lenght of the length,
719+
// RLP byte containing the length of the length,
720720
// followed by the length, followed by the actual data
721721
pub(crate) fn is_very_long(&self) -> Expression<F> {
722722
circuit!([meta, _cb!()], {

Diff for: zkevm-circuits/src/super_circuit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl<F: Field> SubCircuitConfig<F> for SuperCircuitConfig<F> {
138138
let u10_table = UXTable::construct(meta);
139139
let u16_table = UXTable::construct(meta);
140140

141-
// Use a mock randomness instead of the randomness derived from the challange
141+
// Use a mock randomness instead of the randomness derived from the challenge
142142
// (either from mock or real prover) to help debugging assignments.
143143
let power_of_randomness: [Expression<F>; 31] =
144144
array::from_fn(|i| Expression::Constant(mock_randomness.pow([1 + i as u64, 0, 0, 0])));

Diff for: zkevm-circuits/src/test_util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const NUM_BLINDING_ROWS: usize = 64;
3636
/// builder pattern provides functions that allow to pass different functions
3737
/// that the prover should execute when verifying the CTB correctness.
3838
///
39-
/// The CTB also includes a mechanism to recieve calls that will modify the
39+
/// The CTB also includes a mechanism to receive calls that will modify the
4040
/// block produced from the [`TestContext`] and apply them before starting to
4141
/// compute the proof.
4242
///

Diff for: zkevm-circuits/src/tx_circuit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::{marker::PhantomData, ops::Deref};
3131
/// Number of static fields per tx: [nonce, gas, gas_price,
3232
/// caller_address, callee_address, is_create, value, call_data_length,
3333
/// call_data_gas_cost, tx_sign_hash].
34-
/// Note that call data bytes are layed out in the TxTable after all the static
34+
/// Note that call data bytes are laid out in the TxTable after all the static
3535
/// fields arranged by txs.
3636
pub(crate) const TX_LEN: usize = 10;
3737

Diff for: zkevm-circuits/src/tx_circuit/sign_verify.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl<F: Field> SignVerifyChip<F> {
6363
pub fn new(max_verif: usize) -> Self {
6464
// TODO: Investigate if it is safe to use a random point as aux generator that
6565
// is chosen by the prover. If this is unsafe, we will need to update the
66-
// EccChip to calculate an aux generator using the challange API.
66+
// EccChip to calculate an aux generator using the challenge API.
6767
// https://github.com/privacy-scaling-explorations/halo2wrong/issues/53
6868
let mut rng = ChaCha20Rng::seed_from_u64(0);
6969
let aux_generator =

0 commit comments

Comments
 (0)