Skip to content

Commit

Permalink
testing: fix usage on TimeoutPacket to use counterparty portID/channe…
Browse files Browse the repository at this point in the history
…l ID on nextSeqRecv query (backport #4319) (#4446)

* testing: fix usage on TimeoutPacket to use counterparty portID/channelID in nextSeqRecv query (#4319)

(cherry picked from commit 00a680c)

# Conflicts:
#	testing/endpoint.go

* fix conflicts

---------

Co-authored-by: colin axnér <[email protected]>
  • Loading branch information
mergify[bot] and colin-axner authored Aug 24, 2023
1 parent 65a3849 commit cb7c323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testing/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,9 @@ func (endpoint *Endpoint) TimeoutPacket(packet channeltypes.Packet) error {
return fmt.Errorf("unsupported order type %s", endpoint.ChannelConfig.Order)
}

proof, proofHeight := endpoint.Counterparty.QueryProof(packetKey)
nextSeqRecv, found := endpoint.Counterparty.Chain.App.GetIBCKeeper().ChannelKeeper.GetNextSequenceRecv(endpoint.Counterparty.Chain.GetContext(), endpoint.ChannelConfig.PortID, endpoint.ChannelID)
counterparty := endpoint.Counterparty
proof, proofHeight := counterparty.QueryProof(packetKey)
nextSeqRecv, found := counterparty.Chain.App.GetIBCKeeper().ChannelKeeper.GetNextSequenceRecv(counterparty.Chain.GetContext(), counterparty.ChannelConfig.PortID, counterparty.ChannelID)
require.True(endpoint.Chain.T, found)

timeoutMsg := channeltypes.NewMsgTimeout(
Expand Down

0 comments on commit cb7c323

Please sign in to comment.