Skip to content

Commit

Permalink
Add empty query handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Oct 28, 2022
1 parent 48532e0 commit 63d0742
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions x/ccv/provider/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,16 @@ func (k Keeper) QueryConsumerChainStops(goCtx context.Context, req *types.QueryC

return &types.QueryConsumerChainStopProposalsResponse{Proposals: &props}, nil
}

func (k Keeper) QueryConsumerChainValidatorKeyMapping(goCtx context.Context, req *types.QueryConsumerChainValidatorKeyMappingRequest) (*types.QueryConsumerChainValidatorKeyMappingResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}

ctx := sdk.UnwrapSDKContext(goCtx)

// TODO:
_ = ctx

return &types.QueryConsumerChainValidatorKeyMappingResponse{}, nil
}

0 comments on commit 63d0742

Please sign in to comment.