From 1e701533ef4c6c5da35078a10ddef5c8e193ee12 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:34:29 -0300 Subject: [PATCH] chore: convert DefaultGasAdjustment to var (backport #44) (#49) Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com> Co-authored-by: tom --- client/flags/flags.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client/flags/flags.go b/client/flags/flags.go index 26a93a5e6e2f..e02e009ce235 100644 --- a/client/flags/flags.go +++ b/client/flags/flags.go @@ -10,13 +10,14 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keyring" ) +// DefaultGasAdjustment is applied to gas estimates to avoid tx execution +// failures due to state changes that might occur between the tx simulation +// and the actual run. +var DefaultGasAdjustment = 1.0 + const ( - // DefaultGasAdjustment is applied to gas estimates to avoid tx execution - // failures due to state changes that might occur between the tx simulation - // and the actual run. - DefaultGasAdjustment = 1.0 - DefaultGasLimit = 200000 - GasFlagAuto = "auto" + DefaultGasLimit = 200000 + GasFlagAuto = "auto" // DefaultKeyringBackend DefaultKeyringBackend = keyring.BackendOS