Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bus-mapping: Add call_id in StackOp and MemoryOp #252

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

ed255
Copy link
Member

@ed255 ed255 commented Dec 21, 2021

Rename TxAccessListStorageSlot to TxAccessListAccountStorage

Rename GlobalCounter to RWCounter and gc to rwc

Since StackOp and MemoryOp now have the call_id field, I've added the helper functions push_memory_op and push_stack_op so that the correct call_id is set automatically without requiring passing the value.

I've also modified the style of the Ord implementations for the Ops to a more clean and explicit way.

@ed255 ed255 added the crate-bus-mapping Issues related to the bus-mapping workspace member label Dec 21, 2021
@ed255 ed255 requested a review from han0110 December 21, 2021 12:43
@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 Dec 21, 2021
@ed255 ed255 force-pushed the feature/circuitinputbuilder9 branch 2 times, most recently from 08f8e19 to 10e91cc Compare December 21, 2021 14:11
Copy link
Collaborator

@han0110 han0110 left a comment

Choose a reason for hiding this comment

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

LGTM!!

bus-mapping/src/circuit_input_builder.rs Show resolved Hide resolved
bus-mapping/src/circuit_input_builder.rs Outdated Show resolved Hide resolved
Rename TxAccessListStorageSlot to TxAccessListAccountStorage

Rename GlobalCounter to RWCounter and gc to rwc
@ed255 ed255 force-pushed the feature/circuitinputbuilder9 branch from 10e91cc to 71957ae Compare December 22, 2021 10:17
@ed255 ed255 merged commit 1d6537a into main Dec 22, 2021
@ed255 ed255 deleted the feature/circuitinputbuilder9 branch March 23, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate-bus-mapping Issues related to the bus-mapping workspace member 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.

None yet

2 participants