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(),