forked from privacy-scaling-explorations/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Circuit for opcode
EXTCODESIZE
(privacy-scaling-explorations#1014)
* Add bus-mapping and circuit of opcode `EXTCODESIZE`. * Add test cases for `EXTCODESIZE` bus-mapping. * Add circuit code. * Update bus-mapping test cases. * Update circuit test cases. * Replace to convert all bytecodes of bus-mapping code DB to circuit (not only call context bytecodes). * Merge test cases to one function `test_extcodesize_opcode` in bus-mapping. * Update circuit test cases. * Update bus-mapping/src/evm/opcodes/extcodesize.rs Co-authored-by: Carlos Pérez <[email protected]> * Update bus-mapping/src/evm/opcodes/extcodesize.rs Co-authored-by: Carlos Pérez <[email protected]> * Update bus-mapping/src/evm/opcodes/extcodesize.rs Co-authored-by: Carlos Pérez <[email protected]> * Update bus-mapping/src/evm/opcodes/extcodesize.rs Co-authored-by: Carlos Pérez <[email protected]> * Delete using `U256` to fix lint. * Add `MOCK_1_ETH` and `MOCK_CODES` to `mock` crate, and update test cases in both bus-mapping and circuit. * Delete test case `test_ok(None, false)` and update `test_ok` parameter from `&Option<Account>` to `&Account`. Co-authored-by: Carlos Pérez <[email protected]>
- Loading branch information
1 parent
a533b96
commit a606660
Showing
7 changed files
with
518 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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 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 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 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.