diff --git a/cmd/skywire-cli/commands/visor/gen-config.go b/cmd/skywire-cli/commands/visor/gen-config.go index 24c84b2539..306b14fa36 100644 --- a/cmd/skywire-cli/commands/visor/gen-config.go +++ b/cmd/skywire-cli/commands/visor/gen-config.go @@ -86,8 +86,7 @@ func fillInOldKeys(confPath string, conf *visor.Config) error { return fmt.Errorf("invalid old configuration file: %w", err) } - conf.KeyPair.PubKey = oldConf.KeyPair.PubKey - conf.KeyPair.SecKey = oldConf.KeyPair.SecKey + conf.KeyPair = oldConf.KeyPair return nil }