Skip to content

Commit

Permalink
Clarify that GetProposedConsumerChain is test-only
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Apr 30, 2024
1 parent d2cedd0 commit eab6b8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/ccv/provider/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func (k Keeper) SetProposedConsumerChain(ctx sdk.Context, chainID string, propos
}

// GetProposedConsumerChain returns the proposed chainID for the given consumerAddition proposal ID.
// This method is only used for testing.
func (k Keeper) GetProposedConsumerChain(ctx sdk.Context, proposalID uint64) (string, bool) {
store := ctx.KVStore(k.storeKey)
consumerChain := store.Get(types.ProposedConsumerChainKey(proposalID))
Expand Down

0 comments on commit eab6b8b

Please sign in to comment.