@@ -148,7 +148,7 @@ pub trait CircuitsParams: Debug + Copy {
148
148
fn total_chunks ( & self ) -> usize ;
149
149
/// Set total number of chunks
150
150
fn set_total_chunk ( & mut self , total_chunks : usize ) ;
151
- /// Return the maximun Rw
151
+ /// Return the maximum Rw
152
152
fn max_rws ( & self ) -> Option < usize > ;
153
153
}
154
154
@@ -211,7 +211,7 @@ impl Default for FixedCParams {
211
211
/// [`eth_types::GethExecTrace`] to build the circuit input associated with
212
212
/// each transaction, and the bus-mapping operations associated with each
213
213
/// [`eth_types::GethExecStep`] in the [`eth_types::GethExecTrace`]. 3. If `Rw`s
214
- /// generated during Transactions exceed the `max_rws` threshold, seperate witness
214
+ /// generated during Transactions exceed the `max_rws` threshold, separate witness
215
215
/// into multiple chunks.
216
216
///
217
217
/// The generated bus-mapping operations are:
@@ -366,7 +366,7 @@ impl<'a, C: CircuitsParams> CircuitInputBuilder<C> {
366
366
return Ok ( false ) ;
367
367
} ;
368
368
369
- // Optain the first op of the next GethExecStep, for fixed case also lookahead
369
+ // Obtain the first op of the next GethExecStep, for fixed case also lookahead
370
370
let ( mut cib, mut tx, mut tx_ctx) = ( self . clone ( ) , tx, tx_ctx) ;
371
371
let mut cib_ref = cib. state_ref ( & mut tx, & mut tx_ctx) ;
372
372
let mut next_ops = if let Some ( ( i, step) ) = next_geth_step {
@@ -397,8 +397,8 @@ impl<'a, C: CircuitsParams> CircuitInputBuilder<C> {
397
397
/// `self.block.container`, and each step stores the
398
398
/// [`OperationRef`](crate::exec_trace::OperationRef) to each of the
399
399
/// generated operations.
400
- /// When dynamic builder handles Tx with is_chuncked = false, we don't chunk
401
- /// When fixed builder handles Tx with is_chuncked = true, we chunk
400
+ /// When dynamic builder handles Tx with is_chunked = false, we don't chunk
401
+ /// When fixed builder handles Tx with is_chunked = true, we chunk
402
402
fn handle_tx (
403
403
& mut self ,
404
404
eth_tx : & eth_types:: Transaction ,
@@ -475,7 +475,7 @@ impl<'a, C: CircuitsParams> CircuitInputBuilder<C> {
475
475
self . check_and_chunk ( geth_trace, tx. clone ( ) , tx_ctx. clone ( ) , None , None ) ?;
476
476
if is_chunk {
477
477
// TODO we dont support chunk after invalid_tx
478
- // becasuse begin_chunk will constraints what next step execution state.
478
+ // because begin_chunk will constraints what next step execution state.
479
479
// And for next step either begin_tx or invalid_tx will both failed because
480
480
// begin_tx/invalid_tx define new execution state.
481
481
unimplemented ! ( "dont support invalid_tx with multiple chunks" )
@@ -814,7 +814,7 @@ impl CircuitInputBuilder<FixedCParams> {
814
814
) ;
815
815
assert ! (
816
816
self . chunks. len( ) == self . chunk_ctx. idx + 1 ,
817
- "number of chunks {} mis -match with chunk_ctx id {}" ,
817
+ "number of chunks {} miss -match with chunk_ctx id {}" ,
818
818
self . chunks. len( ) ,
819
819
self . chunk_ctx. idx + 1 ,
820
820
) ;
@@ -975,7 +975,7 @@ impl CircuitInputBuilder<DynamicCParams> {
975
975
}
976
976
977
977
/// Handle a block by handling each transaction to generate all the
978
- /// associated operations. Dry run the block to determind the target
978
+ /// associated operations. Dry run the block to determined the target
979
979
/// [`FixedCParams`] from to total number of chunks.
980
980
pub fn handle_block (
981
981
self ,
@@ -1054,7 +1054,7 @@ pub fn keccak_inputs_tx_circuit(
1054
1054
chain_id : u64 ,
1055
1055
) -> Result < Vec < Vec < u8 > > , Error > {
1056
1056
let mut inputs = Vec :: new ( ) ;
1057
- let sign_datas : Vec < SignData > = txs
1057
+ let sign_data : Vec < SignData > = txs
1058
1058
. iter ( )
1059
1059
. enumerate ( )
1060
1060
. filter ( |( i, tx) | {
@@ -1068,7 +1068,7 @@ pub fn keccak_inputs_tx_circuit(
1068
1068
. map ( |( _, tx) | tx. sign_data ( chain_id) )
1069
1069
. try_collect ( ) ?;
1070
1070
// Keccak inputs from SignVerify Chip
1071
- let sign_verify_inputs = keccak_inputs_sign_verify ( & sign_datas ) ;
1071
+ let sign_verify_inputs = keccak_inputs_sign_verify ( & sign_data ) ;
1072
1072
inputs. extend_from_slice ( & sign_verify_inputs) ;
1073
1073
// NOTE: We don't verify the Tx Hash in the circuit yet, so we don't have more
1074
1074
// hash inputs.
0 commit comments