From 9654f9d086dbdc9042e0480ecc4d73fd02627bce Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Fri, 16 Oct 2020 15:42:09 -0400 Subject: [PATCH] fix: set from address in cli context (#695) --- x/incentive/client/cli/tx.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/incentive/client/cli/tx.go b/x/incentive/client/cli/tx.go index 4ab6f7fd..6451851e 100644 --- a/x/incentive/client/cli/tx.go +++ b/x/incentive/client/cli/tx.go @@ -38,16 +38,16 @@ func getCmdClaim(cdc *codec.Codec) *cobra.Command { Use: "claim [owner] [denom]", Short: "claim rewards for owner and denom", Long: strings.TrimSpace( - fmt.Sprintf(`Claim any outstanding rewards owned by owner for the input denom, + fmt.Sprintf(`Claim any outstanding rewards owned by owner for the input collateral-type and multiplier, Example: - $ %s tx %s claim kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw bnb + $ %s tx %s claim kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw bnb-a large `, version.ClientName, types.ModuleName), ), Args: cobra.ExactArgs(3), RunE: func(cmd *cobra.Command, args []string) error { inBuf := bufio.NewReader(cmd.InOrStdin()) - cliCtx := context.NewCLIContext().WithCodec(cdc) + cliCtx := context.NewCLIContextWithInputAndFrom(inBuf, args[0]).WithCodec(cdc) txBldr := auth.NewTxBuilderFromCLI(inBuf).WithTxEncoder(utils.GetTxEncoder(cdc)) owner, err := sdk.AccAddressFromBech32(args[0]) if err != nil {