Skip to content

Commit

Permalink
fix: update the default min gas price (axelarnetwork#1417)
Browse files Browse the repository at this point in the history
* fix: update the default min gas price

* update contract bytecode version config

* Revert "update contract bytecode version config"

This reverts commit 518cae3.
  • Loading branch information
milapsheth authored Apr 7, 2022
1 parent 47709fa commit aa47ead
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/axelard/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import (
"github.com/axelarnetwork/axelar-core/cmd/axelard/cmd/vald"
)

const minGasPrice = "0.00005uaxl"

// NewRootCmd creates a new root command for axelard. It is called once in the
// main function.
func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
Expand Down Expand Up @@ -159,8 +161,8 @@ func initAppConfig() (string, interface{}) {
// - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their
// own app.toml to override, or use this default value.
//
// In simapp, we set the min gas prices to 0.
srvCfg.MinGasPrices = "0uaxl"
// In simapp, we set the default min gas price.
srvCfg.MinGasPrices = minGasPrice

axelarAppConfig := AxelarAppConfig{
Config: *srvCfg,
Expand Down Expand Up @@ -214,7 +216,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {
utils.OverwriteFlagDefaults(rootCmd, map[string]string{
flags.FlagBroadcastMode: flags.BroadcastBlock,
flags.FlagChainID: app.Name,
flags.FlagGasPrices: "0.00005uaxl",
flags.FlagGasPrices: minGasPrice,
flags.FlagKeyringBackend: "file",
flags.FlagSkipConfirmation: "true",
}, false)
Expand Down

0 comments on commit aa47ead

Please sign in to comment.