extra check (#13846)
This commit is contained in:
parent
b00cc29baa
commit
7e69187e24
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user