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.
[fix] create coinbase account in EndTx (privacy-scaling-explorations#…
…1583) ### Description This PR adds additional logic to the EVM circuit to handle empty coinbase accounts, including reading and writing of their code hash and checking if the previous coinbase code hash is zero. ### Issue Link privacy-scaling-explorations#1554 ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Contents - Added reading and writing of coinbase code hash in `bus-mapping/src/evm/opcodes/begin_end_tx.rs` - Modified the logic of EVM circuit `end_tx.rs` to handle empty coinbase account - Update the `TransferToGadget` struct with additional fields and methods ### Rationale The additional logic ensures that the EVM circuit accounts for empty coinbase accounts and properly handles updates to their state. ### How Has This Been Tested? --------- Co-authored-by: DreamWuGit <[email protected]>
- Loading branch information
1 parent
cee187b
commit 242d38b
Showing
3 changed files
with
212 additions
and
86 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
Oops, something went wrong.