diff --git a/pkg/sentry/ethereum/services/duties.go b/pkg/sentry/ethereum/services/duties.go index fc5e9236..c511fe98 100644 --- a/pkg/sentry/ethereum/services/duties.go +++ b/pkg/sentry/ethereum/services/duties.go @@ -222,7 +222,7 @@ func (m *DutiesService) fireOnBeaconCommitteeSubscriptions(epoch phase0.Epoch, c } func (m *DutiesService) fetchBeaconCommittee(ctx context.Context, epoch phase0.Epoch, skipCache ...bool) error { - if skipCache != nil && !skipCache[0] { + if len(skipCache) != 0 && !skipCache[0] { if duties := m.beaconCommittees.Get(epoch); duties != nil { return nil }