diff --git a/x/ccv/provider/keeper/grpc_query.go b/x/ccv/provider/keeper/grpc_query.go index 4da34a6c35..7bd7ed1b2d 100644 --- a/x/ccv/provider/keeper/grpc_query.go +++ b/x/ccv/provider/keeper/grpc_query.go @@ -59,7 +59,7 @@ func (k Keeper) QueryConsumerChains(goCtx context.Context, req *types.QueryConsu pageRes, err := query.Paginate(consumerPhaseStore, req.Pagination, func(key, value []byte) error { consumerId, err := types.ParseStringIdWithLenKey(storePrefix, append([]byte{storePrefix}, key...)) if err != nil { - status.Error(codes.Internal, err.Error()) + return status.Error(codes.Internal, err.Error()) } phase := types.ConsumerPhase(binary.BigEndian.Uint32(value))