From 1471f12269ef1f4fcea436316b1874b5bef1957c Mon Sep 17 00:00:00 2001 From: Dmitry S <11892559+swift1337@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:22:04 +0100 Subject: [PATCH] Address PR comments [1] --- zetaclient/tss/setup.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zetaclient/tss/setup.go b/zetaclient/tss/setup.go index fdc2b0d3b8..ae1ff88de7 100644 --- a/zetaclient/tss/setup.go +++ b/zetaclient/tss/setup.go @@ -4,7 +4,7 @@ import ( "context" "fmt" "os" - "path" + "path/filepath" "slices" "time" @@ -52,8 +52,6 @@ func Setup(ctx context.Context, p SetupProps, logger zerolog.Logger) (*Service, return nil, fmt.Errorf("hot privateKey: expect 32 bytes, got %d bytes", len(hotPrivateKey.Bytes())) } - p.Zetacore.GetKeys().GetKeybase() - hotPrivateKeyECDSA := secp256k1.PrivKey(hotPrivateKey.Bytes()[:32]) // 1. Parse bootstrap peer if provided @@ -263,7 +261,7 @@ func resolveTSSPath(tssPath string, logger zerolog.Logger) (string, error) { return "", errors.Wrap(err, "unable to get user home dir") } - tssPath = path.Join(home, ".tss") + tssPath = filepath.Join(home, ".tss") logger.Warn().Msgf("TSS path is empty, falling back to %s", tssPath) return tssPath, nil