Skip to content

Commit

Permalink
Autocli Keyring is derived from client.Ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime committed Aug 12, 2024
1 parent 35ce5e4 commit 0fabdee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/initiad/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/cosmos/cosmos-sdk/client/pruning"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/client/snapshot"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/cosmos/cosmos-sdk/server"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -136,7 +135,6 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
// add keyring to autocli opts
autoCliOpts := initiaapp.AutoCliOpts()
initClientCtx, _ = config.ReadFromClientConfig(initClientCtx)
autoCliOpts.Keyring, _ = keyring.NewAutoCLIKeyring(initClientCtx.Keyring)
autoCliOpts.ClientCtx = initClientCtx

if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil {
Expand Down

0 comments on commit 0fabdee

Please sign in to comment.