From 08a1a0a204582c00fd16ffae5dfc7a7d22ee9b9a Mon Sep 17 00:00:00 2001 From: Carlton Hanna Date: Thu, 23 May 2024 10:41:58 -0600 Subject: [PATCH] `add-net-asset-values` command now correctly uses the from `flag`'s `AccAddress` (#1996) * Add from address and not from value from cmd * add change log entry * remove trailing spaces --- x/marker/client/cli/tx.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/x/marker/client/cli/tx.go b/x/marker/client/cli/tx.go index 28f6a8eed9..d0ef521640 100644 --- a/x/marker/client/cli/tx.go +++ b/x/marker/client/cli/tx.go @@ -1069,12 +1069,7 @@ func GetCmdAddNetAssetValues() *cobra.Command { return err } - msg := types.NewMsgAddNetAssetValuesRequest(denom, clientCtx.From, netAssetValues) - if err := msg.ValidateBasic(); err != nil { - return err - } - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), types.NewMsgAddNetAssetValuesRequest(denom, clientCtx.GetFromAddress().String(), netAssetValues)) }, } flags.AddTxFlagsToCmd(cmd)