From 35532e181ab8150ac6bd454f765d7780f24045f4 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Mon, 15 Jul 2024 12:41:05 +0200 Subject: [PATCH] chore: review feedback improvements --- x/tokenomics/keeper/settle_session_accounting.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/tokenomics/keeper/settle_session_accounting.go b/x/tokenomics/keeper/settle_session_accounting.go index 5ea6ff547..f9cfd96d5 100644 --- a/x/tokenomics/keeper/settle_session_accounting.go +++ b/x/tokenomics/keeper/settle_session_accounting.go @@ -158,7 +158,9 @@ func (k Keeper) SettleSessionAccounting( ExpectedBurn: &settlementAmt, EffectiveBurn: application.GetStake(), } - if err = cosmostypes.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(applicationOverservicedEvent); err != nil { + + eventManager := cosmostypes.UnwrapSDKContext(ctx).EventManager() + if err = eventManager.EmitTypedEvent(applicationOverservicedEvent); err != nil { return tokenomicstypes.ErrTokenomicsApplicationOverserviced.Wrapf( "application address: %s; expected burn %s; effective burn: %s", application.GetAddress(),