Skip to content

Commit

Permalink
refactor: use app params
Browse files Browse the repository at this point in the history
  • Loading branch information
hacheigriega committed Mar 21, 2024
1 parent 97d58c8 commit eb0bf20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ var (
Bech32PrefixConsAddr = Bech32PrefixAccAddr + "valcons"
// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key.
Bech32PrefixConsPub = Bech32PrefixAccAddr + "valconspub"

MinimumGasPrice = sdk.NewDecCoinFromDec(BaseCoinUnit, math.LegacyMustNewDecFromStr("100000000000")) // 10^11 aseda
)

func getSedaExponent() int64 {
Expand Down
4 changes: 3 additions & 1 deletion cmd/sedad/cmd/config_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
tmcfg "github.com/cometbft/cometbft/config"

serverconfig "github.com/cosmos/cosmos-sdk/server/config"

"github.com/sedaprotocol/seda-chain/app/params"
)

// initTendermintConfig helps to override default Tendermint Config values.
Expand Down Expand Up @@ -52,7 +54,7 @@ func initAppConfig() (string, interface{}) {
// own app.toml to override, or use this default value.
//
// In simapp, we set the min gas prices to 0.
srvCfg.MinGasPrices = "100000000000aseda" // 10^11 aseda
srvCfg.MinGasPrices = params.MinimumGasPrice.String()

// GRPC settings
srvCfg.GRPC.Enable = true
Expand Down

0 comments on commit eb0bf20

Please sign in to comment.