From adfbe89dab8df240569336511a0bc7c09a59511d Mon Sep 17 00:00:00 2001 From: sukrucildirr Date: Tue, 3 Jun 2025 23:56:34 +0300 Subject: [PATCH 1/5] Update assign.rs --- crates/zkwasm/src/circuits/etable/assign.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zkwasm/src/circuits/etable/assign.rs b/crates/zkwasm/src/circuits/etable/assign.rs index cc0ee4684..7662d3243 100644 --- a/crates/zkwasm/src/circuits/etable/assign.rs +++ b/crates/zkwasm/src/circuits/etable/assign.rs @@ -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 From cfec80a8f2ae558303df365fada870ad7fffa660 Mon Sep 17 00:00:00 2001 From: sukrucildirr Date: Tue, 3 Jun 2025 23:57:08 +0300 Subject: [PATCH 2/5] Update external_circuit_plugin.rs --- crates/zkwasm/src/runtime/host/external_circuit_plugin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs b/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs index d168378d2..3895e44a0 100644 --- a/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs +++ b/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs @@ -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, From 438227f329052ee07ca0bf4835cdf578bdd86755 Mon Sep 17 00:00:00 2001 From: sukrucildirr Date: Tue, 3 Jun 2025 23:57:42 +0300 Subject: [PATCH 3/5] Update frame_table_builder.rs --- .../src/runtime/monitor/plugins/table/frame_table_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs b/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs index 9661463be..9a37dd3ad 100644 --- a/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs +++ b/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs @@ -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 From 3adf3f0f1e2b0138f2407644e4074a2125add6b4 Mon Sep 17 00:00:00 2001 From: sukrucildirr Date: Tue, 3 Jun 2025 23:59:34 +0300 Subject: [PATCH 4/5] Update v2.rs --- .../src/runtime/monitor/plugins/table/transaction/v2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs b/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs index 3defe8fe9..07e9d0e62 100644 --- a/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs +++ b/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs @@ -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, @@ -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); From e4ba4dbb1d0bfed2b1f3ab0677a54c609a1adf3b Mon Sep 17 00:00:00 2001 From: sukrucildirr Date: Wed, 4 Jun 2025 00:00:42 +0300 Subject: [PATCH 5/5] Update names.rs --- crates/cli/src/names.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/names.rs b/crates/cli/src/names.rs index f170f9b4f..085c92434 100644 --- a/crates/cli/src/names.rs +++ b/crates/cli/src/names.rs @@ -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)