Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/cli/src/names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub(crate) fn name_of_circuit_data(name: &str, is_last_circuit: bool) -> String
}
}

// FIXME: adapt batcher crate, however the crate should provice this function
// FIXME: adapt batcher crate, however the crate should provide this function
#[inline(always)]
pub(crate) fn name_of_loadinfo(name: &str) -> String {
format!("{}.loadinfo.json", name)
Expand Down
2 changes: 1 addition & 1 deletion crates/zkwasm/src/circuits/etable/assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ use crate::circuits::utils::Context;
* | -------- | ---- + ------ | ---------- + ---- | -------|
* | event | 1 | 1 | | | | permutation with pre image table
* | table | 1 | 1 | | | |
* | entires | 1 | 1 | | | |
* | entries | 1 | 1 | | | |
* | -------- | ---- | ------ | ---------- | ---- | ------ |
* | padding | 1 | 0 | | | | padding rows are used to copy termination status
* | | 1 | 0 | | | | to permutation row
Expand Down
2 changes: 1 addition & 1 deletion crates/zkwasm/src/runtime/host/external_circuit_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl ExternalCircuitEnv {
})
}

/// Register a foreign function to a registed plugin
/// Register a foreign function to a registered plugin
pub fn register_function(
&mut self,
name: &str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl FrameTableBuilder {
* * start -> zkmain
* If we pad a slice, the inherited frame entries of the trivial slice should have two entries with ordering,
* but if first non-trivial slice terminating, 'current_returned' with 'inherited = true' will have
* two entires with reverse ordering, since frame it's a stack(pop from current_unreturned then push into current_returned).
* two entries with reverse ordering, since frame it's a stack(pop from current_unreturned then push into current_returned).
* This crashes commitment checking between trivial slice's post image table and first non-trivial slice's pre image table.
*/
let inherited = self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Checkpoint {
// return value:
// Ordering::Greater: at least one of transaction is overflow
// Ordering::Equal: all transactions are full
// Ordering::Less : no transaction overflow and at least one of transacion is not full
// Ordering::Less : no transaction overflow and at least one of transaction is not full
fn transactions_group_number_ordering(
&self,
applied_transactions_group_number: &HashMap<TransactionId, usize>,
Expand Down Expand Up @@ -138,7 +138,7 @@ impl Checkpoints {
}

fn start(&mut self, tx: TransactionId, offset: usize) {
// end the lastest checkpoint
// end the latest checkpoint
if self.transactions.is_empty() {
if let Some(checkpoint) = self.checkpoints.last_mut() {
checkpoint.range.end = Some(offset);
Expand Down