From 5ffc0fb6bb1cdb8670796903de64d83a1ac3874c Mon Sep 17 00:00:00 2001 From: John Hyde Date: Wed, 10 Sep 2025 14:40:55 -0700 Subject: [PATCH] Fix a function signature -_- --- client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client.go b/client.go index b5b9b00..a67a2a9 100644 --- a/client.go +++ b/client.go @@ -440,9 +440,9 @@ func (c *Client) getLatestBlockHash(ctx context.Context) (string, error) { return resp.AzimuthGetSyncStatus.LatestProcessedBlockHash, nil } -// ValidateStarSponsorship validates that a star is sponsored by the expected galaxy -func ValidateStarSponsorship(ctx context.Context, starID uint32, expectedGalaxyID uint32, client *Client) error { - hasSponsor, err := client.HasSponsor(ctx, starID) +// validateStarSponsorship validates that a star is sponsored by the expected galaxy +func (c *Client) validateStarSponsorship(ctx context.Context, starID uint32, expectedGalaxyID uint32) error { + hasSponsor, err := c.HasSponsor(ctx, starID) if err != nil { return fmt.Errorf("failed to get sponsor: %w", err) } @@ -450,7 +450,7 @@ func ValidateStarSponsorship(ctx context.Context, starID uint32, expectedGalaxyI return fmt.Errorf("star %d is not sponsored by galaxy %d (no sponsor)", starID, expectedGalaxyID) } - sponsor, err := client.GetSponsor(ctx, starID) + sponsor, err := c.GetSponsor(ctx, starID) if err != nil { return fmt.Errorf("failed to get sponsor: %w", err) }