From 2aeecc3dd8cd2f01cb4a84b1404ef2fe76efcab2 Mon Sep 17 00:00:00 2001 From: Linda Guiga <101227802+LindaGuiga@users.noreply.github.com> Date: Wed, 11 Oct 2023 10:02:24 -0400 Subject: [PATCH] Fix failed receipt. (#1284) --- evm/src/cpu/kernel/asm/core/create_receipt.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/evm/src/cpu/kernel/asm/core/create_receipt.asm b/evm/src/cpu/kernel/asm/core/create_receipt.asm index fccabe08..66f48d01 100644 --- a/evm/src/cpu/kernel/asm/core/create_receipt.asm +++ b/evm/src/cpu/kernel/asm/core/create_receipt.asm @@ -228,6 +228,7 @@ failed_receipt: // It is the receipt of a failed transaction, so set num_logs to 0. This will also lead to Bloom filter = 0. PUSH 0 %mstore_global_metadata(@GLOBAL_METADATA_LOGS_LEN) + PUSH 0 %mstore_global_metadata(@GLOBAL_METADATA_LOGS_PAYLOAD_LEN) // stack: status, new_cum_gas, num_nibbles, txn_nb %jump(process_receipt_after_status)