Skip to content

Commit

Permalink
add-net-asset-values command now correctly uses the from flag's `…
Browse files Browse the repository at this point in the history
…AccAddress` (#1996)

* Add from address and not from value from cmd

* add change log entry

* remove trailing spaces
  • Loading branch information
nullpointer0x00 committed May 23, 2024
1 parent dd0940e commit 08a1a0a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x/marker/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08a1a0a

Please sign in to comment.