From dc5614b24156a4b46453a11f5f754d4bc9d312e9 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Thu, 7 May 2020 13:45:16 -0400 Subject: [PATCH] fix: emit inflation as coin --- x/kavadist/keeper/mint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/kavadist/keeper/mint.go b/x/kavadist/keeper/mint.go index 8f909cd7..c7ae61dc 100644 --- a/x/kavadist/keeper/mint.go +++ b/x/kavadist/keeper/mint.go @@ -81,7 +81,7 @@ func (k Keeper) mintInflationaryCoins(ctx sdk.Context, inflationRate sdk.Dec, ti ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeKavaDist, - sdk.NewAttribute(types.AttributeKeyInflation, amountToMint.String()), + sdk.NewAttribute(types.AttributeKeyInflation, sdk.NewCoin(denom, amountToMint).String()), ), ) return nil