From fa8cd5b75de7d79a911df7a64db6d971f595aa8d Mon Sep 17 00:00:00 2001 From: mbreithecker Date: Wed, 12 Jun 2024 10:04:56 +0200 Subject: [PATCH] fix: emit all properties for BundleFinalizedEvent --- x/bundles/keeper/logic_bundles.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x/bundles/keeper/logic_bundles.go b/x/bundles/keeper/logic_bundles.go index a2852a8c..a9b30c71 100644 --- a/x/bundles/keeper/logic_bundles.go +++ b/x/bundles/keeper/logic_bundles.go @@ -422,13 +422,14 @@ func (k Keeper) finalizeCurrentBundleProposal(ctx sdk.Context, poolId uint64, vo FundersPayout: fundersPayout.String(), InflationPayout: inflationPayout, RewardTreasury: bundleReward.Treasury.String(), - RewardUploaderCommission: bundleReward.UploaderCommission.String(), - RewardUploaderStorageCost: bundleReward.UploaderStorageCost.String(), + RewardUploader: bundleReward.UploaderCommission.Add(bundleReward.UploaderStorageCost...).String(), RewardDelegation: bundleReward.Delegation.String(), RewardTotal: bundleReward.Total.String(), FinalizedAt: uint64(ctx.BlockTime().Unix()), Uploader: bundleProposal.Uploader, NextUploader: nextUploader, + RewardUploaderCommission: bundleReward.UploaderCommission.String(), + RewardUploaderStorageCost: bundleReward.UploaderStorageCost.String(), }) // Finalize the proposal, saving useful information.