diff --git a/x/globalfee/module.go b/x/globalfee/module.go index 50cedbfde..020701537 100644 --- a/x/globalfee/module.go +++ b/x/globalfee/module.go @@ -60,7 +60,7 @@ func (a AppModuleBasic) ValidateGenesis( return err } - if err := data.Params.ValidateBasic(); err != nil { + if err := data.Params.Validate(); err != nil { return errors.Wrap(err, "params") } diff --git a/x/globalfee/types/genesis.go b/x/globalfee/types/genesis.go index ef2f44576..5c749ab79 100644 --- a/x/globalfee/types/genesis.go +++ b/x/globalfee/types/genesis.go @@ -32,7 +32,7 @@ func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMe } func ValidateGenesis(data GenesisState) error { - if err := data.Params.ValidateBasic(); err != nil { + if err := data.Params.Validate(); err != nil { return errors.Wrap(err, "globalfee params") } diff --git a/x/globalfee/types/params.go b/x/globalfee/types/params.go index 3971e79b5..c983c714a 100644 --- a/x/globalfee/types/params.go +++ b/x/globalfee/types/params.go @@ -18,11 +18,6 @@ func DefaultParams() Params { return Params{MinimumGasPrices: sdk.DecCoins{}} } -// ValidateBasic performs basic validation. -func (p Params) ValidateBasic() error { - return validateMinimumGasPrices(p.MinimumGasPrices) -} - // this requires the fee non-negative func validateMinimumGasPrices(i interface{}) error { v, ok := i.(sdk.DecCoins)