Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerKSI committed Sep 13, 2023
1 parent afb5c2d commit e024dbe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion x/globalfee/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion x/globalfee/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
5 changes: 0 additions & 5 deletions x/globalfee/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e024dbe

Please sign in to comment.