Skip to content

Commit cb9b542

Browse files
committed
adding module name to incentivized packet events
1 parent 20ffa6f commit cb9b542

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/apps/29-fee/keeper/events.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func EmitIncentivizedPacketEvent(ctx sdk.Context, packetID channeltypes.PacketId
2727
}
2828
}
2929

30-
ctx.EventManager().EmitEvent(
30+
ctx.EventManager().EmitEvents(sdk.Events{
3131
sdk.NewEvent(
3232
types.EventTypeIncentivizedPacket,
3333
sdk.NewAttribute(channeltypes.AttributeKeyPortID, packetID.PortId),
@@ -37,7 +37,11 @@ func EmitIncentivizedPacketEvent(ctx sdk.Context, packetID channeltypes.PacketId
3737
sdk.NewAttribute(types.AttributeKeyAckFee, totalAckFees.String()),
3838
sdk.NewAttribute(types.AttributeKeyTimeoutFee, totalTimeoutFees.String()),
3939
),
40-
)
40+
sdk.NewEvent(
41+
sdk.EventTypeMessage,
42+
sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName),
43+
),
44+
})
4145
}
4246

4347
// EmitRegisterPayeeEvent emits an event containing information of a registered payee for a relayer on a particular channel

0 commit comments

Comments
 (0)