Skip to content

Commit

Permalink
events: add channel ordering to write acknowledgement event (#6867)
Browse files Browse the repository at this point in the history
* docs: remove ordering from write ack event and non-hex data atrributes

* rever doc changes

* add ordering to write acknowledgement event

* Update events.md
  • Loading branch information
crodriguezvega committed Jul 18, 2024
1 parent 019a48d commit 352ba6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/core/04-channel/keeper/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func emitWriteAcknowledgementEvent(ctx sdk.Context, packet types.Packet, channel
sdk.NewAttribute(types.AttributeKeyDstPort, packet.GetDestPort()),
sdk.NewAttribute(types.AttributeKeyDstChannel, packet.GetDestChannel()),
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
Expand Down

0 comments on commit 352ba6e

Please sign in to comment.