Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed May 24, 2024
1 parent 27ca51c commit 8935a10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/name/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ func (s msgServer) CreateRootName(goCtx context.Context, msg *types.MsgCreateRoo
}

// UpdateParams is a governance proposal endpoint for updating the name module's params.
func (k msgServer) UpdateParams(goCtx context.Context, msg *types.MsgUpdateParamsRequest) (*types.MsgUpdateParamsResponse, error) {
func (s msgServer) UpdateParams(goCtx context.Context, msg *types.MsgUpdateParamsRequest) (*types.MsgUpdateParamsResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)

if err := k.ValidateAuthority(msg.Authority); err != nil {
if err := s.ValidateAuthority(msg.Authority); err != nil {
return nil, err
}

k.SetParams(ctx, msg.Params)
s.SetParams(ctx, msg.Params)
if err := ctx.EventManager().EmitTypedEvent(types.NewEventNameParamsUpdated(
msg.Params.AllowUnrestrictedNames,
msg.Params.MaxNameLevels,
Expand Down

0 comments on commit 8935a10

Please sign in to comment.