From a8cf5066d784163f904b31bf931c784829f83363 Mon Sep 17 00:00:00 2001 From: 3eyedraga Date: Thu, 16 Nov 2023 18:13:16 +0530 Subject: [PATCH] chore: gofumpt --- x/reward/genesis_test.go | 2 +- x/reward/keeper/campaign.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/reward/genesis_test.go b/x/reward/genesis_test.go index c76787c4..497fbc5b 100644 --- a/x/reward/genesis_test.go +++ b/x/reward/genesis_test.go @@ -32,7 +32,7 @@ func TestGenesis(t *testing.T) { UID: uuid.NewString(), }, }, - RewardByRecCatList: []types.RewardByCategory{ + RewardByCategoryList: []types.RewardByCategory{ { UID: uuid.NewString(), }, diff --git a/x/reward/keeper/campaign.go b/x/reward/keeper/campaign.go index 7885fd77..7fe23843 100644 --- a/x/reward/keeper/campaign.go +++ b/x/reward/keeper/campaign.go @@ -57,7 +57,7 @@ func (k Keeper) GetAllCampaign(ctx sdk.Context) (list []types.Campaign) { } func (k Keeper) UpdateCampaignPool(ctx sdk.Context, campaign types.Campaign, receiver types.Receiver) { - totalAmount := receiver.SubAccountAmount.Add(receiver.MainAccountAmount) //Fixme: Check if the logic is correct + totalAmount := receiver.SubAccountAmount.Add(receiver.MainAccountAmount) // Fixme: Check if the logic is correct campaign.Pool.Spent = campaign.Pool.Spent.Add(totalAmount) k.SetCampaign(ctx, campaign)