We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de4b565 commit 39f68a7Copy full SHA for 39f68a7
1 file changed
sei-tendermint/types/node_key.go
@@ -61,7 +61,7 @@ func (nk NodeKey) SaveAs(filePath string) error {
61
}
62
// Write pubkey in autobahn-compatible format alongside the key file.
63
pubKeyStr := fmt.Sprintf("node:%s", nk.PubKey().String())
64
- pubKeyPath := filepath.Join(filepath.Dir(filePath), "node_pubkey.txt")
+ pubKeyPath := filepath.Clean(filepath.Join(filepath.Dir(filePath), "node_pubkey.txt"))
65
return os.WriteFile(pubKeyPath, []byte(pubKeyStr), 0600)
66
67
0 commit comments