Skip to content

Commit

Permalink
Reinitialize TO transaction field in main (#440)
Browse files Browse the repository at this point in the history
* Reinitialize to txn field

* Update comment

* Update comment
  • Loading branch information
LindaGuiga authored Jul 24, 2024
1 parent 312cb60 commit 4fa4b77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evm_arithmetization/src/cpu/kernel/asm/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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` for legacy transactions and `to` transaction field
PUSH 0 %mstore_txn_field(@TXN_FIELD_CHAIN_ID_PRESENT)
PUSH 0 %mstore_txn_field(@TXN_FIELD_TO)
%endmacro

0 comments on commit 4fa4b77

Please sign in to comment.