From 4fab8b7bce00dded6bad6decf9939bce7e38591a Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Tue, 26 Sep 2023 15:55:00 +1000 Subject: [PATCH] refactor: Update variable name in beacon block deriver --- pkg/cannon/deriver/beacon/eth/v2/beacon_block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cannon/deriver/beacon/eth/v2/beacon_block.go b/pkg/cannon/deriver/beacon/eth/v2/beacon_block.go index c47011e3..544c75d9 100644 --- a/pkg/cannon/deriver/beacon/eth/v2/beacon_block.go +++ b/pkg/cannon/deriver/beacon/eth/v2/beacon_block.go @@ -158,7 +158,7 @@ func (b *BeaconBlockDeriver) lookAheadAtLocation(ctx context.Context, locations for _, location := range locations { // Get the next look ahead epoch - epoch := phase0.Epoch(location.GetEthV2BeaconBlockVoluntaryExit().GetEpoch()) + epoch := phase0.Epoch(location.GetEthV2BeaconBlock().GetEpoch()) sp, err := b.beacon.Node().Spec() if err != nil {