Merge pull request #149 from XinFinOrg/address_prefix_fix

Fix Invalid address in XDC Console.
This commit is contained in:
Anil Chinchawale 2021-12-27 13:01:43 +05:30 committed by GitHub
commit 7808840be0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -55,9 +55,9 @@ func DefaultDataDir() string {
home := homeDir()
if home != "" {
if runtime.GOOS == "darwin" {
return filepath.Join(home, "Library", "XDPoSChain")
return filepath.Join(home, "Library", "XDCchain")
} else if runtime.GOOS == "windows" {
return filepath.Join(home, "AppData", "Roaming", "XDPoSChain")
return filepath.Join(home, "AppData", "Roaming", "XDCchain")
} else {
return filepath.Join(home, ".XDC")
}