From 036972a0630752853c215623e8390873b60ca74f Mon Sep 17 00:00:00 2001 From: spencer-tb Date: Thu, 31 Oct 2024 14:07:29 +0700 Subject: [PATCH] chore: fix filling with target blob count. --- src/ethereum_test_fixtures/blockchain.py | 2 +- src/ethereum_test_types/types.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ethereum_test_fixtures/blockchain.py b/src/ethereum_test_fixtures/blockchain.py index 9cf3b84327..3a00484eca 100644 --- a/src/ethereum_test_fixtures/blockchain.py +++ b/src/ethereum_test_fixtures/blockchain.py @@ -112,7 +112,7 @@ class FixtureHeader(CamelModel): ) requests_hash: Annotated[Hash, HeaderForkRequirement("requests")] | None = Field(None) target_blob_count: Annotated[ - ZeroPaddedHexNumber, HeaderForkRequirement("blob_count") + ZeroPaddedHexNumber, HeaderForkRequirement("target_blob_count") ] | None = Field(None) fork: Fork | None = Field(None, exclude=True) diff --git a/src/ethereum_test_types/types.py b/src/ethereum_test_types/types.py index 7fed44cad2..6e0e962bf9 100644 --- a/src/ethereum_test_types/types.py +++ b/src/ethereum_test_types/types.py @@ -389,8 +389,7 @@ class EnvironmentGeneric(CamelModel, Generic[NumberBoundTypeVar]): difficulty: NumberBoundTypeVar | None = Field(None, alias="currentDifficulty") base_fee_per_gas: NumberBoundTypeVar | None = Field(None, alias="currentBaseFee") excess_blob_gas: NumberBoundTypeVar | None = Field(None, alias="currentExcessBlobGas") - - target_blob_count: NumberBoundTypeVar | None = Field(None, alias="currentTargetBlobGasUsed") + target_blob_count: NumberBoundTypeVar | None = Field(None, alias="currentTargetBlobCount") parent_difficulty: NumberBoundTypeVar | None = Field(None) parent_timestamp: NumberBoundTypeVar | None = Field(None)