From 51e39c3243792f0bd6f4debc4502b43845a08213 Mon Sep 17 00:00:00 2001 From: filefilegoadmin <68470255+filefilegoadmin@users.noreply.github.com> Date: Sun, 2 Apr 2023 15:48:45 +0300 Subject: [PATCH] Fix unlock address (#77) * Fix unlock address code to unlock any key including the node identity key * Fix cli naming * Remove unused endpoint --- internal/cli/client_commands.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/cli/client_commands.go b/internal/cli/client_commands.go index d6e3969..b27df29 100644 --- a/internal/cli/client_commands.go +++ b/internal/cli/client_commands.go @@ -328,11 +328,6 @@ func UnlockAddress(ctx *cli.Context) error { return fmt.Errorf("failed to read client endpoint file: %w", err) } - endpointBackup := ctx.Args().Get(1) - if endpointBackup != "" { - endpoint = []byte(endpointBackup) - } - ffgclient, err := client.New(string(endpoint), http.DefaultClient) if err != nil { return fmt.Errorf("failed to setup client: %w", err)