Skip to content

Commit

Permalink
revert the use of using a newer call
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Jun 25, 2023
1 parent 6a0e6f7 commit dd368fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion legacy_ibc_testing/core/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func ReconstructPacketFromEvent(event abci.Event) (packet types.Packet, err erro
return packet, err
}
return types.NewPacket(
attrMap[string(types.AttributeKeyDataHex)], // data
attrMap[string(types.AttributeKeyData)], //nolint:staticcheck // data
uint64(sequence),
string(attrMap[string(types.AttributeKeySrcPort)]), // sourcePort,
string(attrMap[string(types.AttributeKeySrcChannel)]), // sourceChannel,
Expand Down
2 changes: 1 addition & 1 deletion legacy_ibc_testing/testing/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func ParseAckFromEvents(events sdk.Events) ([]byte, error) {
for _, ev := range events {
if ev.Type == channeltypes.EventTypeWriteAck {
for _, attr := range ev.Attributes {
if attr.Key == channeltypes.AttributeKeyAckHex {
if attr.Key == channeltypes.AttributeKeyAck { //nolint:staticcheck // data
return []byte(attr.Value), nil
}
}
Expand Down

0 comments on commit dd368fd

Please sign in to comment.