@@ -521,7 +521,7 @@ func TestServer_ListAttestations_Pagination_DefaultPageSize(t *testing.T) {
521521
522522func TestServer_mapAttestationToTargetRoot (t * testing.T ) {
523523 count := uint64 (100 )
524- atts := make ([]* ethpb.Attestation , count , count )
524+ atts := make ([]* ethpb.Attestation , count )
525525 targetRoot1 := bytesutil .ToBytes32 ([]byte ("root1" ))
526526 targetRoot2 := bytesutil .ToBytes32 ([]byte ("root2" ))
527527
@@ -606,7 +606,7 @@ func TestServer_ListIndexedAttestations_GenesisEpoch(t *testing.T) {
606606 state , _ := testutil .DeterministicGenesisState (t , numValidators )
607607
608608 // Next up we convert the test attestations to indexed form:
609- indexedAtts := make ([]* ethpb.IndexedAttestation , len (atts )+ len (atts2 ), len ( atts ) + len ( atts2 ) )
609+ indexedAtts := make ([]* ethpb.IndexedAttestation , len (atts )+ len (atts2 ))
610610 for i := 0 ; i < len (atts ); i ++ {
611611 att := atts [i ]
612612 committee , err := helpers .BeaconCommitteeFromState (state , att .Data .Slot , att .Data .CommitteeIndex )
@@ -707,7 +707,7 @@ func TestServer_ListIndexedAttestations_OldEpoch(t *testing.T) {
707707 require .NoError (t , state .SetSlot (startSlot ))
708708
709709 // Next up we convert the test attestations to indexed form:
710- indexedAtts := make ([]* ethpb.IndexedAttestation , len (atts ), len ( atts ) )
710+ indexedAtts := make ([]* ethpb.IndexedAttestation , len (atts ))
711711 for i := 0 ; i < len (atts ); i ++ {
712712 att := atts [i ]
713713 committee , err := helpers .BeaconCommitteeFromState (state , att .Data .Slot , att .Data .CommitteeIndex )
0 commit comments