Skip to content

Commit

Permalink
fix client keyring config
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Apr 27, 2021
1 parent fc256a3 commit 02bf215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func ReadFromClientConfig(ctx client.Context) (client.Context, error) {
}
// we need to update KeyringDir field on Client Context first cause it is used in NewKeyringFromBackend
ctx = ctx.WithOutputFormat(conf.Output).
WithChainID(conf.ChainID)
WithChainID(conf.ChainID).
WithKeyringDir(ctx.HomeDir)

keyring, err := client.NewKeyringFromBackend(ctx, conf.KeyringBackend)
if err != nil {
Expand Down

0 comments on commit 02bf215

Please sign in to comment.