diff --git a/x/ccv/provider/types/keys.go b/x/ccv/provider/types/keys.go index 8dc78a5421..0c7907ec62 100644 --- a/x/ccv/provider/types/keys.go +++ b/x/ccv/provider/types/keys.go @@ -680,16 +680,16 @@ func ConsumerIdToPowerShapingParametersKey(consumerId string) []byte { return StringIdWithLenKey(mustGetKeyPrefix(ConsumerIdToPowerShapingParameters), consumerId) } -// ConsumerIdToPhaseKey returns the key used to store the phase that corresponds to this consumer id -func ConsumerIdToPhaseKey(consumerId string) []byte { - return StringIdWithLenKey(mustGetKeyPrefix(ConsumerIdToPhaseKeyName), consumerId) -} - // ConsumerIdToPhaseKeyPrefix returns the key prefix used to iterate over all the consumer ids and their phases. func ConsumerIdToPhaseKeyPrefix() byte { return mustGetKeyPrefix(ConsumerIdToPhaseKeyName) } +// ConsumerIdToPhaseKey returns the key used to store the phase that corresponds to this consumer id +func ConsumerIdToPhaseKey(consumerId string) []byte { + return StringIdWithLenKey(ConsumerIdToPhaseKeyPrefix(), consumerId) +} + // ConsumerIdToRemovalTimeKeyPrefix returns the key prefix for storing the removal times of consumer chains // that are about to be removed func ConsumerIdToRemovalTimeKeyPrefix() byte {