Skip to content

Commit

Permalink
refactor: Simplify conversion of attestation indices
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Aug 31, 2023
1 parent ee93e01 commit 64bfcd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cannon/event/beacon/eth/v2/attester_slashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 64bfcd8

Please sign in to comment.