@@ -202,7 +202,7 @@ fn try_import_the_same_assignment() {
202202 parent_hash,
203203 number : 2 ,
204204 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
205- slot_number : 1 ,
205+ slot : 1 . into ( ) ,
206206 } ;
207207 let msg = ApprovalDistributionMessage :: NewBlocks ( vec ! [ meta] ) ;
208208 overseer_send ( overseer, msg) . await ;
@@ -288,7 +288,7 @@ fn spam_attack_results_in_negative_reputation_change() {
288288 parent_hash,
289289 number : 2 ,
290290 candidates : vec ! [ Default :: default ( ) ; candidates_count] ,
291- slot_number : 1 ,
291+ slot : 1 . into ( ) ,
292292 } ;
293293
294294 let msg = ApprovalDistributionMessage :: NewBlocks ( vec ! [ meta] ) ;
@@ -363,7 +363,7 @@ fn import_approval_happy_path() {
363363 parent_hash,
364364 number : 1 ,
365365 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
366- slot_number : 1 ,
366+ slot : 1 . into ( ) ,
367367 } ;
368368 let msg = ApprovalDistributionMessage :: NewBlocks ( vec ! [ meta] ) ;
369369 overseer_send ( overseer, msg) . await ;
@@ -447,7 +447,7 @@ fn import_approval_bad() {
447447 parent_hash,
448448 number : 1 ,
449449 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
450- slot_number : 1 ,
450+ slot : 1 . into ( ) ,
451451 } ;
452452 let msg = ApprovalDistributionMessage :: NewBlocks ( vec ! [ meta] ) ;
453453 overseer_send ( overseer, msg) . await ;
@@ -521,21 +521,21 @@ fn update_our_view() {
521521 parent_hash,
522522 number : 1 ,
523523 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
524- slot_number : 1 ,
524+ slot : 1 . into ( ) ,
525525 } ;
526526 let meta_b = BlockApprovalMeta {
527527 hash : hash_b,
528528 parent_hash : hash_a,
529529 number : 2 ,
530530 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
531- slot_number : 1 ,
531+ slot : 1 . into ( ) ,
532532 } ;
533533 let meta_c = BlockApprovalMeta {
534534 hash : hash_c,
535535 parent_hash : hash_b,
536536 number : 3 ,
537537 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
538- slot_number : 1 ,
538+ slot : 1 . into ( ) ,
539539 } ;
540540
541541 let msg = ApprovalDistributionMessage :: NewBlocks ( vec ! [ meta_a, meta_b, meta_c] ) ;
@@ -591,21 +591,21 @@ fn update_peer_view() {
591591 parent_hash,
592592 number : 1 ,
593593 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
594- slot_number : 1 ,
594+ slot : 1 . into ( ) ,
595595 } ;
596596 let meta_b = BlockApprovalMeta {
597597 hash : hash_b,
598598 parent_hash : hash_a,
599599 number : 2 ,
600600 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
601- slot_number : 1 ,
601+ slot : 1 . into ( ) ,
602602 } ;
603603 let meta_c = BlockApprovalMeta {
604604 hash : hash_c,
605605 parent_hash : hash_b,
606606 number : 3 ,
607607 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
608- slot_number : 1 ,
608+ slot : 1 . into ( ) ,
609609 } ;
610610
611611 let msg = ApprovalDistributionMessage :: NewBlocks ( vec ! [ meta_a, meta_b, meta_c] ) ;
@@ -742,7 +742,7 @@ fn import_remotely_then_locally() {
742742 parent_hash,
743743 number : 1 ,
744744 candidates : vec ! [ Default :: default ( ) ; 1 ] ,
745- slot_number : 1 ,
745+ slot : 1 . into ( ) ,
746746 } ;
747747 let msg = ApprovalDistributionMessage :: NewBlocks ( vec ! [ meta] ) ;
748748 overseer_send ( overseer, msg) . await ;
0 commit comments