Fix a function signature -_-

This commit is contained in:
John Hyde 2025-09-10 14:40:55 -07:00
parent b7e26b3f1d
commit 5ffc0fb6bb

View File

@ -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)
}