Skip to content

Commit f430528

Browse files
robert-zarembaalexanderbezjulienrbrt
authored
docs(cli): improve --gas flag description (cosmos#12913)
* docs(cli): improve --gas flag description * Update client/flags/flags.go Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> * fix sprintf Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
1 parent 15417a2 commit f430528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/flags/flags.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ func AddTxFlagsToCmd(cmd *cobra.Command) {
129129
cmd.Flags().String(FlagChainID, "", "The network chain ID")
130130

131131
// --gas can accept integers and "auto"
132-
cmd.Flags().String(FlagGas, "", fmt.Sprintf("gas limit to set per-transaction; set to %q to calculate sufficient gas automatically (default %d)", GasFlagAuto, DefaultGasLimit))
132+
cmd.Flags().String(FlagGas, "", fmt.Sprintf("gas limit to set per-transaction; set to %q to calculate sufficient gas automatically. Note: %q option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of %q. (default %d)",
133+
GasFlagAuto, GasFlagAuto, FlagFees, DefaultGasLimit))
133134
}
134135

135136
// AddPaginationFlagsToCmd adds common pagination flags to cmd

0 commit comments

Comments
 (0)