From c25b7dceffdf7ee2250230f55bbe0eed142b70ed Mon Sep 17 00:00:00 2001 From: kkast Date: Mon, 1 Apr 2024 21:19:36 +0300 Subject: [PATCH] whats the error --- x/ratelimit/keeper/msg_server.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x/ratelimit/keeper/msg_server.go b/x/ratelimit/keeper/msg_server.go index c2f91c744..09223a5e6 100644 --- a/x/ratelimit/keeper/msg_server.go +++ b/x/ratelimit/keeper/msg_server.go @@ -46,10 +46,6 @@ func (k Keeper) AddTransferRateLimit(goCtx context.Context, msg *types.MsgAddRat func (k Keeper) UpdateTransferRateLimit(goCtx context.Context, msg *types.MsgUpdateRateLimit) (*types.MsgUpdateRateLimitResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - if k.authority != msg.Authority { - return nil, errors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.authority, msg.Authority) - } - if err := msg.ValidateBasic(); err != nil { return nil, err }