Skip to content

Commit

Permalink
src/ethereum_test_tools: Small tweaks and changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed Sep 20, 2023
1 parent 139f277 commit d1897c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/ethereum_test_tools/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2569,16 +2569,16 @@ class FixtureEngineNewPayload:
to_json=True,
),
)
version: int = field(
json_encoder=JSONEncoder.Field(),
)
beacon_root: Optional[FixedSizeBytesConvertible] = field(
default=None,
json_encoder=JSONEncoder.Field(
name="parentBeaconBlockRoot",
cast_type=Hash,
),
)
version: int = field(
json_encoder=JSONEncoder.Field(),
)
error_code: Optional[EngineAPIError] = field(
default=None,
json_encoder=JSONEncoder.Field(
Expand Down Expand Up @@ -2631,8 +2631,7 @@ class FixtureBlock:
Representation of an Ethereum block within a test Fixture.
"""

rlp: Optional[Bytes] = field(
default=None,
rlp: Bytes = field(
json_encoder=JSONEncoder.Field(),
)
block_header: Optional[FixtureHeader] = field(
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum_test_tools/spec/blockchain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def pytest_parameter_name(cls) -> str:
@property
def hive_enabled(self) -> bool:
"""
Returns the true if hive fixture generation is enabled, false otherwise.
Returns true if hive fixture generation is enabled, false otherwise.
"""
return self.base_test_config.enable_hive

Expand Down

0 comments on commit d1897c0

Please sign in to comment.