Skip to content

Commit

Permalink
fix(fw): Workaround to evmone not supporting all Prague EIPs
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed May 27, 2024
1 parent cf3b711 commit 797919e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ethereum_test_tools/spec/blockchain/blockchain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pydantic import Field

from ethereum_test_forks import Fork
from evm_transition_tool import FixtureFormats, TransitionTool
from evm_transition_tool import EvmOneTransitionTool, FixtureFormats, TransitionTool

from ...common import Alloc, EmptyTrieRoot, Environment, Hash, Requests, Transaction, Withdrawal
from ...common.constants import EmptyOmmersRoot
Expand Down Expand Up @@ -235,6 +235,15 @@ def generate_block_data(
if (blob_gas_per_blob := fork.blob_gas_per_blob(env.number, env.timestamp)) > 0:
blob_gas_used = blob_gas_per_blob * count_blobs(txs)

if (
isinstance(t8n, EvmOneTransitionTool)
and transition_tool_output.result.requests_root is None
and fork.header_requests_required(env.number, env.timestamp)
):
# TODO: Remove
# Incorporate the requests root into the extras.
transition_tool_output.result.requests_root = Requests(root=[]).trie_root

header = FixtureHeader(
**(
transition_tool_output.result.model_dump(
Expand Down

0 comments on commit 797919e

Please sign in to comment.