From 3b5db68f0aa1f6706ad130aa21c0f4eda9e2dd4e Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Mon, 27 Jun 2022 17:43:27 +0200 Subject: [PATCH] chore: adding module name to incentivized packet events (#1580) --- modules/apps/29-fee/keeper/events.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/apps/29-fee/keeper/events.go b/modules/apps/29-fee/keeper/events.go index 36207dbc5db..f604a8c9704 100644 --- a/modules/apps/29-fee/keeper/events.go +++ b/modules/apps/29-fee/keeper/events.go @@ -27,7 +27,7 @@ func EmitIncentivizedPacketEvent(ctx sdk.Context, packetID channeltypes.PacketId } } - ctx.EventManager().EmitEvent( + ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( types.EventTypeIncentivizedPacket, sdk.NewAttribute(channeltypes.AttributeKeyPortID, packetID.PortId), @@ -37,7 +37,11 @@ func EmitIncentivizedPacketEvent(ctx sdk.Context, packetID channeltypes.PacketId sdk.NewAttribute(types.AttributeKeyAckFee, totalAckFees.String()), sdk.NewAttribute(types.AttributeKeyTimeoutFee, totalTimeoutFees.String()), ), - ) + sdk.NewEvent( + sdk.EventTypeMessage, + sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), + ), + }) } // EmitRegisterPayeeEvent emits an event containing information of a registered payee for a relayer on a particular channel