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

Commit

Permalink
Add comment regarding RwTableTag (#1735)
Browse files Browse the repository at this point in the history
Adds a comment so that it makes it clear what is RwTableTag when going
through the code.
  • Loading branch information
zemse authored Jan 17, 2024
1 parent d5fe917 commit 05b2b17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bus-mapping/src/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl RWCounter {
}

/// Enum used to differenciate between EVM Stack, Memory and Storage operations.
/// This is also used as the RwTableTag for the RwTable.
#[derive(Debug, Clone, PartialEq, Eq, Copy, EnumIter, Hash)]
pub enum Target {
/// Start is a padding operation.
Expand Down
2 changes: 1 addition & 1 deletion zkevm-circuits/src/evm_circuit/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ pub(crate) enum Lookup<F> {
/// A boolean value to specify if the access record is a read or write.
is_write: Expression<F>,
/// Tag to specify which read-write data to access, see RwTableTag for
/// all tags.
/// all tags. RwTableTag is bus_mapping::operation::Target (PR#1406)
tag: Expression<F>,
/// Values corresponding to the tag.
values: RwValues<F>,
Expand Down
2 changes: 1 addition & 1 deletion zkevm-circuits/src/table/rw_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct RwTable {
pub rw_counter: Column<Advice>,
/// Is Write
pub is_write: Column<Advice>,
/// Tag
/// Tag (bus_mapping::operation::Target)
pub tag: Column<Advice>,
/// Key1 (Id)
pub id: Column<Advice>,
Expand Down

0 comments on commit 05b2b17

Please sign in to comment.