@@ -752,6 +752,9 @@ def make_fixture(
752752 )
753753 self .check_exception_test (exception = invalid_blocks > 0 )
754754 self .verify_post_state (t8n , t8n_state = alloc )
755+ info = {}
756+ if self ._opcode_count is not None :
757+ info ["opcode_count" ] = self ._opcode_count .model_dump ()
755758 return BlockchainFixture (
756759 fork = fork ,
757760 genesis = genesis .header ,
@@ -766,9 +769,7 @@ def make_fixture(
766769 blob_schedule = FixtureBlobSchedule .from_blob_schedule (fork .blob_schedule ()),
767770 chain_id = self .chain_id ,
768771 ),
769- info = {
770- "opcode_count" : self ._opcode_count .model_dump (),
771- },
772+ info = info ,
772773 )
773774
774775 def make_hive_fixture (
@@ -821,6 +822,9 @@ def make_hive_fixture(
821822 self .verify_post_state (t8n , t8n_state = alloc )
822823
823824 # Create base fixture data, common to all fixture formats
825+ info = {}
826+ if self ._opcode_count is not None :
827+ info ["opcode_count" ] = self ._opcode_count .model_dump ()
824828 fixture_data = {
825829 "fork" : fork ,
826830 "genesis" : genesis .header ,
@@ -834,9 +838,7 @@ def make_hive_fixture(
834838 chain_id = self .chain_id ,
835839 blob_schedule = FixtureBlobSchedule .from_blob_schedule (fork .blob_schedule ()),
836840 ),
837- "info" : {
838- "opcode_count" : self ._opcode_count .model_dump (),
839- },
841+ "info" : info ,
840842 }
841843
842844 # Add format-specific fields
0 commit comments