diff --git a/CHANGELOG.md b/CHANGELOG.md index b82120887099..130070d3d03c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (server) [#18478](https://github.com/cosmos/cosmos-sdk/pull/18478) Add command flag to disable colored logs. * (x/gov) [#18025](https://github.com/cosmos/cosmos-sdk/pull/18025) Improve ` q gov proposer` by querying directly a proposal instead of tx events. It is an alias of `q gov proposal` as the proposer is a field of the proposal. * (version) [#18063](https://github.com/cosmos/cosmos-sdk/pull/18063) Allow to define extra info to be displayed in ` version --long` command. +* (cli) [#44](https://github.com/evmos/cosmos-sdk/pull/44) Convert `DefaultGasAdjustment` to `var` to allow customization of the value ### Bug Fixes 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