-
Notifications
You must be signed in to change notification settings - Fork 18
EIP-3855: PUSH0
instruction
#145
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
base: main
Are you sure you want to change the base?
Conversation
|
1 similar comment
|
PUSH0
instruction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
\saNote{} | ||
Implicitly of course $\cmc_{i} \cdot \peekContext_{i + 1} = \cmc_{i}$ (\trash); | ||
\item[\underline{Setting the gas cost:}] | ||
we impose that $\gasCost_{i} = \decStaticGas_{i}$; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do you manage the fact that cost of PUSH0
is 2, while the one of PUSH1-32
is 3? Other than that, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The static gas is obtained via lookup to the instruction decoder. It is enough that the instruction decoder know the gas cost of PUSH0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@OlivierBBB I would add comment in the ROM module that |
I'll add that @letypequividelespoubelles |
I addressed #145 (comment) @letypequividelespoubelles |
PUSH0
instructionPUSH0
instruction
No description provided.