From 814bef2b209ad9ce5c360ec99f9158349a411498 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 1 Jul 2025 00:49:12 +0300 Subject: [PATCH] fix: have the same order of received variables --- remote/http/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remote/http/service.go b/remote/http/service.go index df85cbd..883d5bc 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -559,7 +559,7 @@ func requestEnsAlias(ctx context.Context, publicKey string, hint string) (*model return &r, nil } -func (as *HTTPAccountService) UpdateAlias(ctx context.Context, publicKey string, name string) (*models.RequestAliasResult, error) { +func (as *HTTPAccountService) UpdateAlias(ctx context.Context, name string, publicKey string) (*models.RequestAliasResult, error) { if as.SS == nil { return nil, fmt.Errorf("The storage service cannot be nil") } @@ -567,7 +567,7 @@ func (as *HTTPAccountService) UpdateAlias(ctx context.Context, publicKey string, if !strings.Contains(name, ".") { name = as.ToFqdn(name) } - enr, err := updateEnsAlias(ctx, publicKey, name) + enr, err := updateEnsAlias(ctx, name, publicKey) if err != nil { return nil, err } @@ -578,7 +578,7 @@ func (as *HTTPAccountService) UpdateAlias(ctx context.Context, publicKey string, } } -func updateEnsAlias(ctx context.Context, publicKey string, name string) (*models.AliasEnsResult, error) { +func updateEnsAlias(ctx context.Context, name string, publicKey string) (*models.AliasEnsResult, error) { var r models.AliasEnsResult endpoint := config.AliasUpdateURL