Skip to content

Commit

Permalink
chore: review feedback improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jul 15, 2024
1 parent 70caf94 commit 35532e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/tokenomics/keeper/settle_session_accounting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 35532e1

Please sign in to comment.