From 18af4d2e596851eb7e57208a44f21c9964245d04 Mon Sep 17 00:00:00 2001 From: Linda Guiga Date: Wed, 24 Jul 2024 15:08:59 +0100 Subject: [PATCH 1/3] Reinitialize to txn field --- evm_arithmetization/src/cpu/kernel/asm/main.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/evm_arithmetization/src/cpu/kernel/asm/main.asm b/evm_arithmetization/src/cpu/kernel/asm/main.asm index a9e63c2ec..9d6aac48a 100644 --- a/evm_arithmetization/src/cpu/kernel/asm/main.asm +++ b/evm_arithmetization/src/cpu/kernel/asm/main.asm @@ -179,4 +179,5 @@ global check_receipt_trie: // Reinitialize `chain_id` for legacy txns PUSH 0 %mstore_txn_field(@TXN_FIELD_CHAIN_ID_PRESENT) + PUSH 0 %mstore_txn_field(@TXN_FIELD_TO) %endmacro From 995e8a30aa0c5711d98d633273e39aaa367ca022 Mon Sep 17 00:00:00 2001 From: Linda Guiga Date: Wed, 24 Jul 2024 15:14:35 +0100 Subject: [PATCH 2/3] Update comment --- evm_arithmetization/src/cpu/kernel/asm/main.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm_arithmetization/src/cpu/kernel/asm/main.asm b/evm_arithmetization/src/cpu/kernel/asm/main.asm index 9d6aac48a..7139e802d 100644 --- a/evm_arithmetization/src/cpu/kernel/asm/main.asm +++ b/evm_arithmetization/src/cpu/kernel/asm/main.asm @@ -177,7 +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 PUSH 0 %mstore_txn_field(@TXN_FIELD_CHAIN_ID_PRESENT) PUSH 0 %mstore_txn_field(@TXN_FIELD_TO) %endmacro From 6736646465636d921766e1ac5d3f57cebdba6413 Mon Sep 17 00:00:00 2001 From: Linda Guiga Date: Wed, 24 Jul 2024 15:39:29 +0100 Subject: [PATCH 3/3] Update comment --- evm_arithmetization/src/cpu/kernel/asm/main.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm_arithmetization/src/cpu/kernel/asm/main.asm b/evm_arithmetization/src/cpu/kernel/asm/main.asm index 7139e802d..849eed9ae 100644 --- a/evm_arithmetization/src/cpu/kernel/asm/main.asm +++ b/evm_arithmetization/src/cpu/kernel/asm/main.asm @@ -177,7 +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` and `to` transaction fields + // 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