Skip to content

Commit 9a08f56

Browse files
committed
fix: bug in execution payload test.
1 parent 31507a6 commit 9a08f56

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/ethereum_test_fixtures/tests/test_blockchain.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Bytes,
1717
Hash,
1818
HeaderNonce,
19+
HexNumber,
1920
TestPrivateKey,
2021
ZeroPaddedHexNumber,
2122
to_json,
@@ -788,7 +789,7 @@
788789
),
789790
).requests_list
790791
],
791-
hex(21),
792+
HexNumber(21).hex(),
792793
],
793794
"forkchoiceUpdatedVersion": "4",
794795
"newPayloadVersion": "4",
@@ -944,7 +945,7 @@
944945
),
945946
).requests_list
946947
],
947-
hex(21),
948+
HexNumber(21).hex(),
948949
],
949950
"newPayloadVersion": "4",
950951
"forkchoiceUpdatedVersion": "4",
@@ -1167,7 +1168,7 @@ def test_json_deserialization(
11671168
id="fixture_engine_new_payload_parameters_v3",
11681169
),
11691170
pytest.param(
1170-
False,
1171+
True,
11711172
EngineNewPayloadParametersAdapter,
11721173
(
11731174
FixtureExecutionPayload.from_fixture_header(
@@ -1191,7 +1192,6 @@ def test_json_deserialization(
11911192
withdrawals_root=Hash(16),
11921193
blob_gas_used=17,
11931194
excess_blob_gas=18,
1194-
target_blobs_per_block=10,
11951195
),
11961196
transactions=[
11971197
Transaction(
@@ -1232,6 +1232,7 @@ def test_json_deserialization(
12321232
target_pubkey=BLSPublicKey(2),
12331233
),
12341234
).requests_list,
1235+
HexNumber(9),
12351236
),
12361237
[
12371238
{
@@ -1249,7 +1250,6 @@ def test_json_deserialization(
12491250
"baseFeePerGas": hex(15),
12501251
"blobGasUsed": hex(17),
12511252
"excessBlobGas": hex(18),
1252-
"targetBlobCount": hex(10),
12531253
"blockHash": "0xd90115b7fde329f64335763a446af1"
12541254
"50ab67e639281dccdb07a007d18bb80211",
12551255
"transactions": [
@@ -1298,6 +1298,7 @@ def test_json_deserialization(
12981298
),
12991299
).requests_list
13001300
],
1301+
HexNumber(9).hex(),
13011302
],
13021303
id="fixture_engine_new_payload_parameters_v4",
13031304
),

0 commit comments

Comments
 (0)