Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jan 10, 2024
1 parent 7c12b1e commit 25177eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cannon/deriver/beacon/eth/v2/elaborated_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Check failure on line 359 in pkg/cannon/deriver/beacon/eth/v2/elaborated_attestation.go

View workflow job for this annotation

GitHub Actions / lint

unnecessary conversion (unconvert)

// 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()},
Expand All @@ -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()},
Expand Down

0 comments on commit 25177eb

Please sign in to comment.