From 64bfcd857fc0f80ae61773b9b8548d63aed59cd1 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Thu, 31 Aug 2023 14:26:02 +1000 Subject: [PATCH] refactor: Simplify conversion of attestation indices --- pkg/cannon/event/beacon/eth/v2/attester_slashing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cannon/event/beacon/eth/v2/attester_slashing.go b/pkg/cannon/event/beacon/eth/v2/attester_slashing.go index 45e170bc..e593989a 100644 --- a/pkg/cannon/event/beacon/eth/v2/attester_slashing.go +++ b/pkg/cannon/event/beacon/eth/v2/attester_slashing.go @@ -85,7 +85,7 @@ func convertIndexedAttestation(attestation *phase0.IndexedAttestation) *xatuethv indicies := []*wrapperspb.UInt64Value{} for _, index := range attestation.AttestingIndices { - indicies = append(indicies, &wrapperspb.UInt64Value{Value: uint64(index)}) + indicies = append(indicies, &wrapperspb.UInt64Value{Value: index}) } return &xatuethv1.IndexedAttestationV2{