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

feat: upgrade RwTable and add aux#285

Merged
ed255 merged 8 commits into
privacy-ethereum:mainfrom
scroll-tech:rw_table/add_aux
Jan 27, 2022
Merged

feat: upgrade RwTable and add aux#285
ed255 merged 8 commits into
privacy-ethereum:mainfrom
scroll-tech:rw_table/add_aux

Conversation

@scroll-dev
Copy link
Copy Markdown
Collaborator

@scroll-dev scroll-dev commented Jan 18, 2022

@github-actions github-actions Bot added T-opcode Type: opcode-related and focused PR/Issue crate-zkevm-circuits Issues related to the zkevm-circuits workspace member labels Jan 18, 2022
Comment on lines +506 to +511
RwTableTag::TxAccessListAccount => values.swap(3, 4),
RwTableTag::TxAccessListStorageSlot => values.swap(3, 4),
RwTableTag::Account => values.swap(2, 3),
RwTableTag::Account => values.swap(3, 4),
RwTableTag::AccountStorage => values.swap(3, 4),
RwTableTag::AccountDestructed => values.swap(2, 3),
RwTableTag::AccountDestructed => values.swap(3, 4),
RwTableTag::TxRefund => values.swap(3, 4),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge these cases together, like RwTableTag::TxAccessListAccount | RwTableTag::TxAccessListStorageSlot | ...?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe add a func fn is_reversible() to RwTableTag?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem! I will work on it

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in f674018

Copy link
Copy Markdown
Contributor

@ed255 ed255 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Collaborator

@icemelon icemelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ed255 ed255 merged commit ac7eb79 into privacy-ethereum:main Jan 27, 2022
@icemelon icemelon deleted the rw_table/add_aux branch February 11, 2022 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

crate-zkevm-circuits Issues related to the zkevm-circuits workspace member T-opcode Type: opcode-related and focused PR/Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants