From 4864fcd24488fcba8c727797632902a2c00e7cf1 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Wed, 24 Jul 2024 16:53:06 +1000 Subject: [PATCH] fix(cannon): Swap state id when fetching duties (#352) * feat(cannon): Canonical Beacon Committees * feat(cannon): Canonical Beacon Committees * Update deploy/migrations/clickhouse/045_canonical_beacon_committee.up.sql Co-authored-by: Andrew Davis <1709934+Savid@users.noreply.github.com> Signed-off-by: Sam Calder-Mason * fix: Update beacon committee fetch call arguments --------- Signed-off-by: Sam Calder-Mason Co-authored-by: Andrew Davis <1709934+Savid@users.noreply.github.com> --- pkg/cannon/ethereum/services/duties.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cannon/ethereum/services/duties.go b/pkg/cannon/ethereum/services/duties.go index e18fa706..ff126914 100644 --- a/pkg/cannon/ethereum/services/duties.go +++ b/pkg/cannon/ethereum/services/duties.go @@ -123,7 +123,7 @@ func (m *DutiesService) FetchBeaconCommittee(ctx context.Context, stateID string m.log.WithField("epoch", epoch).Debug("Fetching beacon committee") - committees, err := m.beacon.FetchBeaconCommittees(ctx, xatuethv1.EpochAsString(epoch), nil) + committees, err := m.beacon.FetchBeaconCommittees(ctx, xatuethv1.StateIDFinalized, &epoch) if err != nil { m.log.WithError(err).Error("Failed to fetch beacon committees")