This repository was archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 269
refacor/CALL and OOG_CALL #348
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b24fc30
add call_gadget for CALL and OOG_CALL.
KimiWu123 75989d5
fix: type check error
KimiWu123 0f5ca44
feat: add a func, is_empty_code_hash(), in call_gadget
KimiWu123 2284f65
fix: using common functions instead of class for making spec easy to …
KimiWu123 ad22495
refactor: align the implementation with zkevm-circuit
KimiWu123 2abfce9
fix: add balance check
KimiWu123 0d651a4
fix: type check error
KimiWu123 0f59667
refactor: using code_hash to determine callee_exists and some clean-up
KimiWu123 53df9ee
apply comments from review
KimiWu123 a7d329a
fix: update how non-existing account are handled as suggestions from …
KimiWu123 7e0fc6e
refactor: move the order of CodeHash read in callop and oog_call test
KimiWu123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Recently the case of *CALL* without code execution has been updated due to how non-existing accounts are handled.
Non-existing accounts are now identified by having
code_hash = 0, which is not the empty hash value. But those cases should still be handled as no code execution.So I think it would be better to define:
And then in this if replace the first check by
no_callee_code == FQ(1)I notice that
call.callee_not_existsis missing from theCallGadgetin this PR. I introduced that in a very recent PR in the circuits. See privacy-ethereum/zkevm-circuits@aaaf13e#diff-08d58ebc59ab6c11bf7c049e859441eed2319a03feb3fdffaddaba73f8a8c829There 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.
fixed in a7d329a