From 2c931cd6a4903116e2199b4e428ec708c225327e Mon Sep 17 00:00:00 2001 From: spencer-tb Date: Fri, 25 Oct 2024 21:35:01 +0700 Subject: [PATCH] chore: only check for witness once conversion ended. --- src/ethereum_test_specs/blockchain.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/ethereum_test_specs/blockchain.py b/src/ethereum_test_specs/blockchain.py index 48dbd9588c..6d18610680 100644 --- a/src/ethereum_test_specs/blockchain.py +++ b/src/ethereum_test_specs/blockchain.py @@ -580,11 +580,14 @@ def generate_block_data( ) ) transition_tool_output.alloc = previous_alloc - # TODO: hack for now, replace with actual witness output once available from t8n - transition_tool_output.witness = Witness( - verkle_proof=transition_tool_output.result.verkle_proof, - state_diff=transition_tool_output.result.state_diff, - ) + if transition_tool_output.result.verkle_conversion_ended: + # TODO: hack for now, replace with actual witness output once available from t8n + transition_tool_output.witness = Witness( + verkle_proof=transition_tool_output.result.verkle_proof, + state_diff=transition_tool_output.result.state_diff, + ) + else: + transition_tool_output.witness = None return ( env,