Skip to content

Commit

Permalink
Fix panic on migration of old key pair
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Mar 27, 2020
1 parent 4f4e4fb commit 4b38d32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/skywire-cli/commands/visor/gen-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4b38d32

Please sign in to comment.