Skip to content

Commit

Permalink
version: Remove Viper (cosmos#6628)
Browse files Browse the repository at this point in the history
* version: remove viper

* Remove home flag gets

* fix: tests
  • Loading branch information
alexanderbez authored Jul 7, 2020
1 parent a9f7dae commit e85be34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions simd/cmd/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e85be34

Please sign in to comment.