Skip to content

Commit

Permalink
chore: convert DefaultGasAdjustment to var (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
GAtom22 authored Aug 15, 2023
1 parent 00a49b0 commit a3b98a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3b98a4

Please sign in to comment.