From 36f56bfb16a3c58531bd31c2eece26ef4d735778 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Thu, 18 Jul 2024 10:58:11 +0200 Subject: [PATCH] events: add channel ordering to write acknowledgement event (#6867) * docs: remove ordering from write ack event and non-hex data atrributes * rever doc changes * add ordering to write acknowledgement event * Update events.md (cherry picked from commit 352ba6e58477ea23824ce93e2545de116ef04cf0) --- modules/core/04-channel/keeper/events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/04-channel/keeper/events.go b/modules/core/04-channel/keeper/events.go index 486630f36a6..81912c10e65 100644 --- a/modules/core/04-channel/keeper/events.go +++ b/modules/core/04-channel/keeper/events.go @@ -191,6 +191,7 @@ func emitWriteAcknowledgementEvent(ctx sdk.Context, packet exported.PacketI, cha sdk.NewAttribute(types.AttributeKeyDstChannel, packet.GetDestChannel()), sdk.NewAttribute(types.AttributeKeyAck, string(acknowledgement)), //nolint:staticcheck // DEPRECATED sdk.NewAttribute(types.AttributeKeyAckHex, hex.EncodeToString(acknowledgement)), + sdk.NewAttribute(types.AttributeKeyChannelOrdering, channel.Ordering.String()), // we only support 1-hop packets now, and that is the most important hop for a relayer // (is it going to a chain I am connected to) sdk.NewAttribute(types.AttributeKeyConnection, channel.ConnectionHops[0]), // DEPRECATED