fix democoind init. use rootCmd

This commit is contained in:
Ethan Buchman
2018-04-05 13:42:04 +03:00
parent c74c57a2f0
commit 4dfc5c0852
3 changed files with 28 additions and 38 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ var (
context = server.NewContext(nil, nil)
rootCmd = &cobra.Command{
Use: "democoind",
Short: "Gaia Daemon (server)",
Short: "Democoin Daemon (server)",
PersistentPreRunE: server.PersistentPreRunEFn(context),
}
)
@@ -35,7 +35,7 @@ func defaultAppState(args []string, addr sdk.Address, coinDenom string) (json.Ra
return nil, err
}
var jsonMap map[string]json.RawMessage
err = json.Unmarshal(baseJSON, jsonMap)
err = json.Unmarshal(baseJSON, &jsonMap)
if err != nil {
return nil, err
}