forked from cerc-io/laconicd-deprecated
19 lines
550 B
Go
19 lines
550 B
Go
|
package v2
|
||
|
|
||
|
import (
|
||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||
|
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
|
||
|
"github.com/tharsis/ethermint/x/evm/types"
|
||
|
)
|
||
|
|
||
|
// AddMinGasMultiplierParam updates the module parameter MinGasMultiplier to 0.5
|
||
|
func AddMinGasMultiplierParam(ctx sdk.Context, paramStore *paramtypes.Subspace) error {
|
||
|
if !paramStore.HasKeyTable() {
|
||
|
ps := paramStore.WithKeyTable(types.ParamKeyTable())
|
||
|
paramStore = &ps
|
||
|
}
|
||
|
|
||
|
paramStore.Set(ctx, types.ParamStoreKeyMinGasMultiplier, types.DefaultMinGasMultiplier)
|
||
|
return nil
|
||
|
}
|