Skip to content
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

Reinitialize TO transaction field in main #440

Merged
merged 3 commits into from
Jul 24, 2024

Conversation

LindaGuiga
Copy link
Contributor

If the to field is empty, the previous value is read, which should be 0. This PR sets the field to 0 before processing each transaction, so the value read in such cases is indeed 0.

@github-actions github-actions bot added the crate: evm_arithmetization Anything related to the evm_arithmetization crate. label Jul 24, 2024
Copy link
Collaborator

@Nashtare Nashtare left a comment

Choose a reason for hiding this comment

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

Thank you!

@@ -177,6 +177,7 @@ global check_receipt_trie:
PUSH 0 %mstore_global_metadata(@GLOBAL_METADATA_REFUND_COUNTER)
PUSH 0 %mstore_global_metadata(@GLOBAL_METADATA_SELFDESTRUCT_LIST_LEN)

// Reinitialize `chain_id` for legacy txns
// Reinitialize `chain_id` and `to` transaction fields
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: I'd keep the explanation that chain_id reset is for legacy txns specifically, for clarity.

@Nashtare Nashtare merged commit 4fa4b77 into feat/continuations Jul 24, 2024
13 of 14 checks passed
@Nashtare Nashtare deleted the fix-reinit-txn-field branch July 24, 2024 15:21
@Nashtare Nashtare added this to the zk-continuations - Q3 2024 milestone Jul 25, 2024
Nashtare pushed a commit that referenced this pull request Aug 6, 2024
* Reinitialize to txn field

* Update comment

* Update comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: evm_arithmetization Anything related to the evm_arithmetization crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants