From 5b8448a3f1592161f2d6d7cef378f1ad0639ca76 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:53:47 +0100 Subject: [PATCH] Update distribution.go --- x/ccv/provider/keeper/distribution.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x/ccv/provider/keeper/distribution.go b/x/ccv/provider/keeper/distribution.go index 1b3336aefa..d6f8224837 100644 --- a/x/ccv/provider/keeper/distribution.go +++ b/x/ccv/provider/keeper/distribution.go @@ -14,6 +14,12 @@ func (k Keeper) EndBlockRD(ctx sdk.Context) { k.TransferRewardsToFeeCollector(ctx) } +func (k Keeper) SonarCloudTestFunctionDoNotMerge(ctx sdk.Context) { + store := ctx.KVStore(k.storeKey) + store.Set(types.ConsumerRewardDenomsKey("uatom"), []byte{}) + return +} + func (k Keeper) GetConsumerRewardsPoolAddressStr(ctx sdk.Context) string { return k.accountKeeper.GetModuleAccount( ctx, types.ConsumerRewardsPool).GetAddress().String()