From 25177eb6ba89c802817b2316b12a101c89cdb943 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Wed, 10 Jan 2024 17:31:37 +1000 Subject: [PATCH] chore: linting --- pkg/cannon/deriver/beacon/eth/v2/elaborated_attestation.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cannon/deriver/beacon/eth/v2/elaborated_attestation.go b/pkg/cannon/deriver/beacon/eth/v2/elaborated_attestation.go index 5206b846..bf4c780a 100644 --- a/pkg/cannon/deriver/beacon/eth/v2/elaborated_attestation.go +++ b/pkg/cannon/deriver/beacon/eth/v2/elaborated_attestation.go @@ -355,11 +355,11 @@ func (b *ElaboratedAttestationDeriver) createEventFromElaboratedAttestation(ctx }, } - attestationSlot := b.beacon.Metadata().Wallclock().Slots().FromNumber(uint64(attestation.Data.Slot.Value)) + attestationSlot := b.beacon.Metadata().Wallclock().Slots().FromNumber(attestation.Data.Slot.Value) epoch := b.beacon.Metadata().Wallclock().Epochs().FromSlot(uint64(attestationSlot.Number())) // Build out the target section - targetEpoch := b.beacon.Metadata().Wallclock().Epochs().FromNumber(uint64(attestation.Data.Target.Epoch.GetValue())) + targetEpoch := b.beacon.Metadata().Wallclock().Epochs().FromNumber(attestation.Data.Target.Epoch.GetValue()) target := &xatu.ClientMeta_AdditionalEthV1AttestationTargetV2Data{ Epoch: &xatu.EpochV2{ Number: &wrapperspb.UInt64Value{Value: targetEpoch.Number()}, @@ -368,7 +368,7 @@ func (b *ElaboratedAttestationDeriver) createEventFromElaboratedAttestation(ctx } // Build out the source section - sourceEpoch := b.beacon.Metadata().Wallclock().Epochs().FromNumber(uint64(attestation.Data.Source.Epoch.GetValue())) + sourceEpoch := b.beacon.Metadata().Wallclock().Epochs().FromNumber(attestation.Data.Source.Epoch.GetValue()) source := &xatu.ClientMeta_AdditionalEthV1AttestationSourceV2Data{ Epoch: &xatu.EpochV2{ Number: &wrapperspb.UInt64Value{Value: sourceEpoch.Number()},