diff --git a/baseapp/msg_service_router.go b/baseapp/msg_service_router.go index 2df4e113d8..02192e892d 100644 --- a/baseapp/msg_service_router.go +++ b/baseapp/msg_service_router.go @@ -112,6 +112,10 @@ func (msr *MsgServiceRouter) RegisterService(sd *grpc.ServiceDesc, handler inter goCtx = context.WithValue(goCtx, sdk.SdkContextKey, ctx) return handler(goCtx, req) } + + if err := req.ValidateBasic(); err != nil { + return nil, err + } // Call the method handler from the service description with the handler object. // We don't do any decoding here because the decoding was already done. res, err := methodHandler(handler, sdk.WrapSDKContext(ctx), noopDecoder, interceptor)