Skip to content

Commit

Permalink
feat: set default min-gas-price
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacbia3696 committed Jul 13, 2023
1 parent 0247014 commit feaa5b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/gentlemint/keeper/migration.go
Expand Up @@ -2,6 +2,8 @@ package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/sharering/shareledger/x/utils/denom"
)

// Migrator is a struct for handling in-place store migrations.
Expand All @@ -21,6 +23,7 @@ func (m Migrator) Migrate1to2(ctx sdk.Context) error {

// this version add paramSpace min_gas_price for `gentlemint`
func (m Migrator) Migrate2to3(ctx sdk.Context) error {
m.keeper.SetMinGasPriceParam(ctx, sdk.NewDecCoins())
// default min-gas-prices is 100_000_000 nshr
m.keeper.SetMinGasPriceParam(ctx, sdk.NewDecCoins(sdk.NewDecCoin(denom.Base, sdk.NewInt(100_000))))
return nil
}

0 comments on commit feaa5b7

Please sign in to comment.