Skip to content

Commit

Permalink
remove redundant validate params
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Dec 26, 2023
1 parent c9a9fb4 commit 466679d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions x/opchild/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ func (k Keeper) BridgeExecutor(ctx context.Context) (sdk.AccAddress, error) {

// SetParams sets the x/opchild module parameters.
func (k Keeper) SetParams(ctx context.Context, params types.Params) error {
if err := params.Validate(k.authKeeper.AddressCodec()); err != nil {
return err
}
return k.Params.Set(ctx, params)
}

Expand Down
4 changes: 0 additions & 4 deletions x/ophost/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import (
)

func (k Keeper) InitGenesis(ctx sdk.Context, data *types.GenesisState) {
if err := data.Params.Validate(); err != nil {
panic(err)
}

if err := k.SetParams(ctx, data.Params); err != nil {
panic(err)
}
Expand Down

0 comments on commit 466679d

Please sign in to comment.