@@ -117,7 +117,7 @@ def test_gossip_aggregation_succeeds_with_all_signatures() -> None:
117117
118118 result = state ._aggregate_signatures_from_gossip (
119119 validator_ids ,
120- data_root ,
120+ Bytes32 ( data_root ) ,
121121 Slot (3 ),
122122 gossip_signatures ,
123123 )
@@ -135,7 +135,7 @@ def test_gossip_aggregation_returns_partial_result_when_some_missing() -> None:
135135
136136 result = state ._aggregate_signatures_from_gossip (
137137 [Uint64 (0 ), Uint64 (1 )],
138- data_root ,
138+ Bytes32 ( data_root ) ,
139139 Slot (2 ),
140140 gossip_signatures ,
141141 )
@@ -154,7 +154,7 @@ def test_gossip_aggregation_returns_none_if_no_signature_matches() -> None:
154154
155155 result = state ._aggregate_signatures_from_gossip (
156156 [Uint64 (0 ), Uint64 (1 )],
157- data_root ,
157+ Bytes32 ( data_root ) ,
158158 Slot (2 ),
159159 gossip_signatures ,
160160 )
@@ -177,7 +177,7 @@ def test_pick_from_aggregated_proofs_prefers_widest_overlap() -> None:
177177
178178 proof , remaining = state ._pick_from_aggregated_proofs (
179179 remaining_validator_ids = remaining_validator_ids ,
180- data_root = data_root ,
180+ data_root = Bytes32 ( data_root ) ,
181181 aggregated_payloads = aggregated_payloads ,
182182 )
183183
@@ -200,7 +200,7 @@ def test_pick_from_aggregated_proofs_returns_remaining_for_partial_payload() ->
200200
201201 proof , remaining = state ._pick_from_aggregated_proofs (
202202 remaining_validator_ids = remaining_validator_ids ,
203- data_root = data_root ,
203+ data_root = Bytes32 ( data_root ) ,
204204 aggregated_payloads = aggregated_payloads ,
205205 )
206206
@@ -215,7 +215,7 @@ def test_pick_from_aggregated_proofs_requires_payloads() -> None:
215215 with pytest .raises (ValueError , match = "aggregated payloads required" ):
216216 state ._pick_from_aggregated_proofs (
217217 remaining_validator_ids = {Uint64 (0 )},
218- data_root = b"\x55 " * 32 ,
218+ data_root = Bytes32 ( b"\x55 " * 32 ) ,
219219 aggregated_payloads = None ,
220220 )
221221
@@ -226,7 +226,7 @@ def test_pick_from_aggregated_proofs_errors_on_empty_remaining() -> None:
226226 with pytest .raises (ValueError , match = "remaining validator ids cannot be empty" ):
227227 state ._pick_from_aggregated_proofs (
228228 remaining_validator_ids = set (),
229- data_root = b"\x66 " * 32 ,
229+ data_root = Bytes32 ( b"\x66 " * 32 ) ,
230230 aggregated_payloads = {},
231231 )
232232
@@ -238,7 +238,7 @@ def test_pick_from_aggregated_proofs_errors_when_no_candidates() -> None:
238238 with pytest .raises (ValueError , match = "Failed to locate aggregated proof" ):
239239 state ._pick_from_aggregated_proofs (
240240 remaining_validator_ids = {Uint64 (0 )},
241- data_root = data_root ,
241+ data_root = Bytes32 ( data_root ) ,
242242 aggregated_payloads = {SignatureKey (Uint64 (0 ), Bytes32 (data_root )): []},
243243 )
244244
@@ -381,7 +381,7 @@ def test_gossip_aggregation_with_empty_validator_list() -> None:
381381
382382 result = state ._aggregate_signatures_from_gossip (
383383 [], # empty validator list
384- data_root ,
384+ Bytes32 ( data_root ) ,
385385 Slot (1 ),
386386 gossip_signatures ,
387387 )
@@ -396,7 +396,7 @@ def test_gossip_aggregation_with_none_gossip_signatures() -> None:
396396
397397 result = state ._aggregate_signatures_from_gossip (
398398 [Uint64 (0 ), Uint64 (1 )],
399- data_root ,
399+ Bytes32 ( data_root ) ,
400400 Slot (1 ),
401401 None , # None gossip_signatures
402402 )
@@ -411,7 +411,7 @@ def test_gossip_aggregation_with_empty_gossip_signatures() -> None:
411411
412412 result = state ._aggregate_signatures_from_gossip (
413413 [Uint64 (0 ), Uint64 (1 )],
414- data_root ,
414+ Bytes32 ( data_root ) ,
415415 Slot (1 ),
416416 {}, # empty dict
417417 )
0 commit comments