From 9e4fbde53db6d3887c8c5fa1f9245c913943cbe0 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 22 Aug 2024 10:14:00 +0200 Subject: [PATCH] nits --- x/ccv/provider/keeper/grpc_query.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/ccv/provider/keeper/grpc_query.go b/x/ccv/provider/keeper/grpc_query.go index bd6a6b7761..c3f9f8749e 100644 --- a/x/ccv/provider/keeper/grpc_query.go +++ b/x/ccv/provider/keeper/grpc_query.go @@ -335,17 +335,17 @@ func (k Keeper) QueryConsumerValidators(goCtx context.Context, req *types.QueryC ctx := sdk.UnwrapSDKContext(goCtx) - // check that consumer is initialized + // check that the consumer is initialized initParams, err := k.GetConsumerInitializationParameters(ctx, consumerId) if err != nil { return nil, status.Error(codes.InvalidArgument, errorsmod.Wrap(types.ErrUnknownConsumerId, consumerId).Error()) } // query consumer validator set - var consumerValSet []types.ConsensusValidator + var consumerValSet []types.ConsensusValidator // if the consumer hasn't launched yet, compute the consumer validator set - if ctx.BlockTime().Before(initParams.SpawnTime) { + if ctx.BlockTime().Before(*initParams.SpawnTime) { var bondedValidators []stakingtypes.Validator powerParams, err := k.GetConsumerPowerShapingParameters(ctx, consumerId)