Skip to content

Commit

Permalink
fix: Correct method name in getAdditionalData function
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jul 3, 2024
1 parent 3bbc4b3 commit 0f34b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sentry/event/beacon/eth/v1/events_voluntary_exit.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (e *EventsVoluntaryExit) ShouldIgnore(ctx context.Context) (bool, error) {
func (e *EventsVoluntaryExit) getAdditionalData(_ context.Context) (*xatu.ClientMeta_AdditionalEthV1EventsVoluntaryExitV2Data, error) {
extra := &xatu.ClientMeta_AdditionalEthV1EventsVoluntaryExitV2Data{}

epoch := e.beacon.Metadata().Wallclock().Epochs().FromSlot(uint64(e.event.Message.Epoch))
epoch := e.beacon.Metadata().Wallclock().Epochs().FromNumber(uint64(e.event.Message.Epoch))

extra.Epoch = &xatu.EpochV2{
Number: &wrapperspb.UInt64Value{Value: epoch.Number()},
Expand Down

0 comments on commit 0f34b6d

Please sign in to comment.