From 4a38b9aeae16c4ac1ee2bf662a5ce339cc242ed4 Mon Sep 17 00:00:00 2001 From: MSalopek Date: Mon, 27 Nov 2023 22:30:00 +0100 Subject: [PATCH] tests: update names --- x/ccv/provider/keeper/key_assignment.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x/ccv/provider/keeper/key_assignment.go b/x/ccv/provider/keeper/key_assignment.go index da6aa8de94..46447790df 100644 --- a/x/ccv/provider/keeper/key_assignment.go +++ b/x/ccv/provider/keeper/key_assignment.go @@ -379,8 +379,8 @@ func (k Keeper) AssignConsumerKey( consumerKey tmprotocrypto.PublicKey, ) error { // check that the consumer chain is either registered or that - // ConsumerAdditionProposal was voted on. - if !k.CheckIfConsumerIsProposedOrRegistered(ctx, chainID) { + // a ConsumerAdditionProposal was submitted. + if !k.IsConsumerProposedOrRegistered(ctx, chainID) { return errorsmod.Wrapf( types.ErrUnknownConsumerChainId, chainID, ) @@ -639,9 +639,9 @@ func (k Keeper) DeleteKeyAssignments(ctx sdk.Context, chainID string) { } } -// CheckIfConsumerIsProposedOrRegistered checks if a consumer chain is either registered, meaning either already running +// IsConsumerProposedOrRegistered checks if a consumer chain is either registered, meaning either already running // or will run soon, or proposed its ConsumerAdditionProposal was submitted but the chain was not yet added to ICS yet. -func (k Keeper) CheckIfConsumerIsProposedOrRegistered(ctx sdk.Context, chainID string) bool { +func (k Keeper) IsConsumerProposedOrRegistered(ctx sdk.Context, chainID string) bool { allConsumerChains := k.GetAllRegisteredAndProposedChainIDs(ctx) for _, c := range allConsumerChains { if c == chainID {