Skip to content

Commit

Permalink
extra check (cosmos#13846)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored Nov 12, 2022
1 parent b00cc29 commit 7e69187
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions baseapp/msg_service_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e69187

Please sign in to comment.