From a3b98a4a1694916d55e77c26ba410c045aab2021 Mon Sep 17 00:00:00 2001 From: Tom <54514587+GAtom22@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:51:35 -0300 Subject: [PATCH] chore: convert DefaultGasAdjustment to var (#44) --- CHANGELOG.md | 6 ++++++ client/flags/flags.go | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5faaddf0649a..a658938d57f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,12 @@ Ref: https://keepachangelog.com/en/1.0.0/ # Changelog +## [v0.47.4-evmos.2] - 2023-08-15 + +### Improvements + +* (cli) [#44](https://github.com/evmos/cosmos-sdk/pull/44) Convert `DefaultGasAdjustment` to `var` to allow customization of the value + ## [v0.47.4-evmos] - 2023-07-31 ### Features diff --git a/client/flags/flags.go b/client/flags/flags.go index 51918b473a98..37c751cb8930 100644 --- a/client/flags/flags.go +++ b/client/flags/flags.go @@ -11,13 +11,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