Skip to content

Commit 39f68a7

Browse files
wen-codingmasih
andauthored
Update sei-tendermint/types/node_key.go
Co-authored-by: Masih H. Derkani <m@derkani.org>
1 parent de4b565 commit 39f68a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sei-tendermint/types/node_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (nk NodeKey) SaveAs(filePath string) error {
6161
}
6262
// Write pubkey in autobahn-compatible format alongside the key file.
6363
pubKeyStr := fmt.Sprintf("node:%s", nk.PubKey().String())
64-
pubKeyPath := filepath.Join(filepath.Dir(filePath), "node_pubkey.txt")
64+
pubKeyPath := filepath.Clean(filepath.Join(filepath.Dir(filePath), "node_pubkey.txt"))
6565
return os.WriteFile(pubKeyPath, []byte(pubKeyStr), 0600)
6666
}
6767

0 commit comments

Comments
 (0)