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
…lID in nextSeqRecv query (#4319)

(cherry picked from commit 00a680c)

# Conflicts:
#	testing/endpoint.go
  • Loading branch information
colin-axner authored and mergify[bot] committed Aug 24, 2023
1 parent 65a3849 commit fc3ff8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testing/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,16 @@ func (endpoint *Endpoint) TimeoutPacket(packet channeltypes.Packet) error {
return fmt.Errorf("unsupported order type %s", endpoint.ChannelConfig.Order)
}

<<<<<<< HEAD
proof, proofHeight := endpoint.Counterparty.QueryProof(packetKey)
nextSeqRecv, found := endpoint.Counterparty.Chain.App.GetIBCKeeper().ChannelKeeper.GetNextSequenceRecv(endpoint.Counterparty.Chain.GetContext(), endpoint.ChannelConfig.PortID, endpoint.ChannelID)
require.True(endpoint.Chain.T, found)
=======
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.TB, found)
>>>>>>> 00a680cd (testing: fix usage on TimeoutPacket to use counterparty portID/channelID in nextSeqRecv query (#4319))

timeoutMsg := channeltypes.NewMsgTimeout(
packet, nextSeqRecv,
Expand Down

0 comments on commit fc3ff8d

Please sign in to comment.