File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -443,8 +443,8 @@ class FixtureBlockBase(CamelModel):
443
443
ommers : List [FixtureHeader ] = Field (default_factory = list , alias = "uncleHeaders" )
444
444
withdrawals : List [FixtureWithdrawal ] | None = None
445
445
execution_witness : WitnessChunk | None = None
446
- block_access_list : Bytes | None = Field (
447
- None , description = "Serialized EIP-7928 Block Access List"
446
+ block_access_list : BlockAccessList | None = Field (
447
+ None , description = "EIP-7928 Block Access List"
448
448
)
449
449
450
450
@computed_field (alias = "blocknumber" ) # type: ignore[misc]
@@ -464,6 +464,9 @@ def with_rlp(self, txs: List[Transaction]) -> "FixtureBlock":
464
464
if self .withdrawals is not None :
465
465
block .append ([w .to_serializable_list () for w in self .withdrawals ])
466
466
467
+ if self .block_access_list is not None :
468
+ block .append (self .block_access_list .to_list ())
469
+
467
470
return FixtureBlock (
468
471
** self .model_dump (),
469
472
rlp = eth_rlp .encode (block ),
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ def get_fixture_block(self) -> FixtureBlock | InvalidFixtureBlock:
338
338
if self .withdrawals is not None
339
339
else None
340
340
),
341
- block_access_list = self .block_access_list . rlp if self .block_access_list else None ,
341
+ block_access_list = self .block_access_list if self .block_access_list else None ,
342
342
fork = self .fork ,
343
343
).with_rlp (txs = self .txs )
344
344
@@ -367,9 +367,9 @@ def get_fixture_engine_new_payload(self) -> FixtureEngineNewPayload:
367
367
transactions = self .txs ,
368
368
withdrawals = self .withdrawals ,
369
369
requests = self .requests ,
370
+ block_access_list = self .block_access_list .rlp ,
370
371
validation_error = self .expected_exception ,
371
372
error_code = self .engine_api_error_code ,
372
- block_access_list = self .block_access_list .rlp if self .block_access_list else None ,
373
373
)
374
374
375
375
def verify_transactions (self , transition_tool_exceptions_reliable : bool ) -> List [int ]:
You can’t perform that action at this time.
0 commit comments