fix(Audit): Audit issues (#190)
This commit is contained in:
@@ -34,7 +34,11 @@ func CmdQueryParams() *cobra.Command {
|
||||
Short: "Query the current parameters of the builder module",
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
clientCtx := client.GetClientContextFromCmd(cmd)
|
||||
clientCtx, err := client.GetClientQueryContext(cmd)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
queryClient := types.NewQueryClient(clientCtx)
|
||||
|
||||
request := &types.QueryParamsRequest{}
|
||||
|
||||
@@ -42,7 +42,9 @@ where each transaction is a hex-encoded string of a signed transaction.
|
||||
Args: cobra.ExactArgs(3),
|
||||
Example: "auction-bid cosmos1... 10000uatom 0xFF...,0xCC...,0xAA...",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmd.Flags().Set(flags.FlagFrom, args[0])
|
||||
if err := cmd.Flags().Set(flags.FlagFrom, args[0]); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
clientCtx, err := client.GetClientTxContext(cmd)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user