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

fix log gas by adding static cost#507

Merged
ed255 merged 1 commit into
privacy-ethereum:mainfrom
scroll-tech:fix_log_gas
May 12, 2022
Merged

fix log gas by adding static cost#507
ed255 merged 1 commit into
privacy-ethereum:mainfrom
scroll-tech:fix_log_gas

Conversation

@DreamWuGit
Copy link
Copy Markdown
Collaborator

@DreamWuGit DreamWuGit commented May 12, 2022

when handling #476 , found that SameContextGadget::construct won't add op code constant gas into gas cost now, this PR adds log static gas in op code for now.!
while in spec instruction::step_state_transition_in_same_context still sum constant and dynamic gas. https://github.com/appliedzkp/zkevm-specs/blob/master/src/zkevm_specs/evm/instruction.py#L245

@DreamWuGit DreamWuGit requested review from a team and CPerezz and removed request for a team May 12, 2022 01:29
@github-actions github-actions Bot added the crate-zkevm-circuits Issues related to the zkevm-circuits workspace member label May 12, 2022
@DreamWuGit DreamWuGit mentioned this pull request May 12, 2022
8 tasks
@DreamWuGit DreamWuGit changed the title fix log gas fix log gas by adding static cost May 12, 2022
Copy link
Copy Markdown
Collaborator

@ChihChengLiang ChihChengLiang left a comment

Choose a reason for hiding this comment

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

LGTM

@ChihChengLiang ChihChengLiang requested review from a team and han0110 and removed request for a team and CPerezz May 12, 2022 13:48
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!

@ed255 ed255 merged commit 223b38c into privacy-ethereum:main May 12, 2022
lispc pushed a commit that referenced this pull request Jun 1, 2023
* Update `CreateGadget` to limit maximum init code size, and add init code word gas.

* Update for oog-create errors.
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants