Skip to content

Commit

Permalink
chore: convert DefaultGasAdjustment to var (backport #44) (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: tom <tomasguerraalda@hotmail.com>
  • Loading branch information
3 people committed Jun 5, 2024
1 parent 62212df commit 1e70153
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e70153

Please sign in to comment.