From 6483ab14394445e022276e6ce667ccdce4b1797f Mon Sep 17 00:00:00 2001 From: rodiazet Date: Fri, 18 Aug 2023 14:33:13 +0200 Subject: [PATCH] t8n: Support pre byzantium receipt format --- test/t8n/t8n.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/t8n/t8n.cpp b/test/t8n/t8n.cpp index c96dbecf47..80e15d1531 100644 --- a/test/t8n/t8n.cpp +++ b/test/t8n/t8n.cpp @@ -145,6 +145,9 @@ int main(int argc, const char* argv[]) j_receipt["transactionHash"] = hex0x(computed_tx_hash); j_receipt["gasUsed"] = hex0x(static_cast(receipt.gas_used)); cumulative_gas_used += receipt.gas_used; + receipt.cumulative_gas_used = cumulative_gas_used; + if (rev < EVMC_BYZANTIUM) + receipt.post_state = state::mpt_hash(state.get_accounts()); j_receipt["cumulativeGasUsed"] = hex0x(cumulative_gas_used); j_receipt["blockHash"] = hex0x(bytes32{});