Skip to content

Commit 70dc4ed

Browse files
committed
tools: fix tests
1 parent 1826382 commit 70dc4ed

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed

src/ethereum_test_tools/tests/test_fixtures/blockchain_shanghai_invalid_filled_hive.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
],
4444
"withdrawals": []
4545
},
46+
"valid": true,
4647
"version": "2"
4748
},
4849
{
@@ -67,6 +68,7 @@
6768
],
6869
"withdrawals": []
6970
},
71+
"valid": true,
7072
"version": "2"
7173
},
7274
{
@@ -90,6 +92,7 @@
9092
],
9193
"withdrawals": []
9294
},
95+
"valid": false,
9396
"version": "2"
9497
},
9598
{
@@ -114,6 +117,7 @@
114117
],
115118
"withdrawals": []
116119
},
120+
"valid": true,
117121
"version": "2"
118122
},
119123
{
@@ -137,6 +141,7 @@
137141
],
138142
"withdrawals": []
139143
},
144+
"valid": false,
140145
"version": "2"
141146
},
142147
{
@@ -161,6 +166,7 @@
161166
],
162167
"withdrawals": []
163168
},
169+
"valid": true,
164170
"version": "2"
165171
}
166172
],
@@ -336,6 +342,7 @@
336342
],
337343
"withdrawals": []
338344
},
345+
"valid": true,
339346
"version": "2"
340347
},
341348
{
@@ -360,6 +367,7 @@
360367
],
361368
"withdrawals": []
362369
},
370+
"valid": true,
363371
"version": "2"
364372
},
365373
{
@@ -383,6 +391,7 @@
383391
],
384392
"withdrawals": []
385393
},
394+
"valid": false,
386395
"version": "2"
387396
},
388397
{
@@ -407,6 +416,7 @@
407416
],
408417
"withdrawals": []
409418
},
419+
"valid": true,
410420
"version": "2"
411421
},
412422
{
@@ -430,6 +440,7 @@
430440
],
431441
"withdrawals": []
432442
},
443+
"valid": false,
433444
"version": "2"
434445
},
435446
{
@@ -454,6 +465,7 @@
454465
],
455466
"withdrawals": []
456467
},
468+
"valid": true,
457469
"version": "2"
458470
}
459471
],

src/ethereum_test_tools/tests/test_fixtures/blockchain_shanghai_valid_filled_hive.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
],
4444
"withdrawals": []
4545
},
46+
"valid": true,
4647
"version": "2"
4748
},
4849
{
@@ -67,6 +68,7 @@
6768
],
6869
"withdrawals": []
6970
},
71+
"valid": true,
7072
"version": "2"
7173
},
7274
{
@@ -91,6 +93,7 @@
9193
],
9294
"withdrawals": []
9395
},
96+
"valid": true,
9497
"version": "2"
9598
},
9699
{
@@ -115,6 +118,7 @@
115118
],
116119
"withdrawals": []
117120
},
121+
"valid": true,
118122
"version": "2"
119123
}
120124
],
@@ -290,6 +294,7 @@
290294
],
291295
"withdrawals": []
292296
},
297+
"valid": true,
293298
"version": "2"
294299
},
295300
{
@@ -314,6 +319,7 @@
314319
],
315320
"withdrawals": []
316321
},
322+
"valid": true,
317323
"version": "2"
318324
},
319325
{
@@ -338,6 +344,7 @@
338344
],
339345
"withdrawals": []
340346
},
347+
"valid": true,
341348
"version": "2"
342349
},
343350
{
@@ -362,6 +369,7 @@
362369
],
363370
"withdrawals": []
364371
},
372+
"valid": true,
365373
"version": "2"
366374
}
367375
],

src/ethereum_test_tools/tests/test_fixtures/chainid_merge_filled_hive.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"0xf861800a8405f5e10094100000000000000000000000000000000000000080801ba07e09e26678ed4fac08a249ebe8ed680bf9051a5e14ad223e4b2b9d26e0208f37a05f6e3f188e3e6eab7d7d3b6568f5eac7d687b08d307d3154ccd8c87b4630509b"
4141
]
4242
},
43+
"valid": true,
4344
"version": "1"
4445
}
4546
],

src/ethereum_test_tools/tests/test_fixtures/chainid_shanghai_filled_hive.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
],
4343
"withdrawals": []
4444
},
45+
"valid": true,
4546
"version": "2"
4647
}
4748
],

src/ethereum_test_tools/tests/test_types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ def test_account_merge(
941941
],
942942
withdrawals=[Withdrawal(index=0, validator=1, address=0x1234, amount=2)],
943943
),
944+
valid=False,
944945
version=1,
945946
),
946947
{
@@ -984,6 +985,7 @@ def test_account_merge(
984985
to_json(Withdrawal(index=0, validator=1, address=0x1234, amount=2))
985986
],
986987
},
988+
"valid": False,
987989
"version": "1",
988990
},
989991
id="fixture_engine_new_payload_1",
@@ -1032,6 +1034,7 @@ def test_account_merge(
10321034
withdrawals=[Withdrawal(index=0, validator=1, address=0x1234, amount=2)],
10331035
),
10341036
version=1,
1037+
valid=True,
10351038
blob_versioned_hashes=[bytes([0]), bytes([1])],
10361039
error_code=EngineAPIError.InvalidRequest,
10371040
),
@@ -1077,6 +1080,7 @@ def test_account_merge(
10771080
],
10781081
},
10791082
"version": "1",
1083+
"valid": True,
10801084
"expectedBlobVersionedHashes": [
10811085
"0x0000000000000000000000000000000000000000000000000000000000000000",
10821086
"0x0000000000000000000000000000000000000000000000000000000000000001",

0 commit comments

Comments
 (0)