From 7ee9e6d64fe55cde95b62bbf6bead5b307d10b5d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 19 Aug 2022 18:26:49 +0200 Subject: [PATCH] docs(cli): improve --gas flag description (#12913) (#12965) * docs(cli): improve --gas flag description * Update client/flags/flags.go Co-authored-by: Aleksandr Bezobchuk * fix sprintf Co-authored-by: Aleksandr Bezobchuk Co-authored-by: Julien Robert (cherry picked from commit f430528ebc4a5028804c85824c15d2a76d5fdb41) Co-authored-by: Robert Zaremba --- client/flags/flags.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/flags/flags.go b/client/flags/flags.go index 12bd7fd24cf4..8740d183bb8c 100644 --- a/client/flags/flags.go +++ b/client/flags/flags.go @@ -127,7 +127,8 @@ func AddTxFlagsToCmd(cmd *cobra.Command) { cmd.Flags().Bool(FlagAux, false, "Generate aux signer data instead of sending a tx") // --gas can accept integers and "auto" - cmd.Flags().String(FlagGas, "", fmt.Sprintf("gas limit to set per-transaction; set to %q to calculate sufficient gas automatically (default %d)", GasFlagAuto, DefaultGasLimit)) + 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)", + GasFlagAuto, GasFlagAuto, FlagFees, DefaultGasLimit)) } // AddPaginationFlagsToCmd adds common pagination flags to cmd