Update examples

This commit is contained in:
Aleksandr Bezobchuk 2018-11-27 16:09:20 -05:00
parent 155c553456
commit 252030c6b6
2 changed files with 2 additions and 10 deletions

View File

@ -52,10 +52,6 @@ func main() {
config.SetBech32PrefixForConsensusNode("basecons", "baseconspub")
config.Seal()
rs := lcd.NewRestServer(cdc)
registerRoutes(rs)
// TODO: Setup keybase, viper object, etc. to be passed into
// the below functions and eliminate global vars, like we do
// with the cdc.
@ -104,7 +100,7 @@ func main() {
// add proxy, version and key info
rootCmd.AddCommand(
client.LineBreak,
rs.ServeCommand(),
lcd.ServeCommand(cdc, registerRoutes),
keys.Commands(),
client.LineBreak,
version.VersionCmd,

View File

@ -48,10 +48,6 @@ func main() {
config.SetBech32PrefixForConsensusNode("democons", "democonspub")
config.Seal()
rs := lcd.NewRestServer(cdc)
registerRoutes(rs)
// TODO: setup keybase, viper object, etc. to be passed into
// the below functions and eliminate global vars, like we do
// with the cdc
@ -94,7 +90,7 @@ func main() {
// add proxy, version and key info
rootCmd.AddCommand(
client.LineBreak,
rs.ServeCommand(),
lcd.ServeCommand(cdc, registerRoutes),
keys.Commands(),
client.LineBreak,
version.VersionCmd,