fix(Audit): Audit issues (#190)

This commit is contained in:
David Terpay
2023-07-03 17:01:40 +00:00
committed by GitHub
parent 91af6a4c47
commit e873dfda31
15 changed files with 140 additions and 93 deletions
+5 -1
View File
@@ -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{}
+3 -1
View File
@@ -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 {