version: Remove Viper (#6628)

* version: remove viper

* Remove home flag gets

* fix: tests
This commit is contained in:
Alexander Bezobchuk
2020-07-07 17:20:09 +00:00
committed by GitHub
parent 57ffe14631
commit bc261d9e83
7 changed files with 55 additions and 53 deletions
+1 -3
View File
@@ -6,7 +6,6 @@ import (
"fmt"
"github.com/spf13/cobra"
"github.com/tendermint/tendermint/libs/cli"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
@@ -47,8 +46,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa
serverCtx := server.GetServerContextFromCmd(cmd)
config := serverCtx.Config
homeDir, _ := cmd.Flags().GetString(cli.HomeFlag)
config.SetRoot(homeDir)
config.SetRoot(clientCtx.HomeDir)
keyringBackend, _ := cmd.Flags().GetString(flags.FlagKeyringBackend)
clientHome, _ := cmd.Flags().GetString(flagClientHome)