Skip to content

Commit cb7c323

Browse files
testing: fix usage on TimeoutPacket to use counterparty portID/channel 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 <25233464+colin-axner@users.noreply.github.com>
1 parent 65a3849 commit cb7c323

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testing/endpoint.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,9 @@ func (endpoint *Endpoint) TimeoutPacket(packet channeltypes.Packet) error {
526526
return fmt.Errorf("unsupported order type %s", endpoint.ChannelConfig.Order)
527527
}
528528

529-
proof, proofHeight := endpoint.Counterparty.QueryProof(packetKey)
530-
nextSeqRecv, found := endpoint.Counterparty.Chain.App.GetIBCKeeper().ChannelKeeper.GetNextSequenceRecv(endpoint.Counterparty.Chain.GetContext(), endpoint.ChannelConfig.PortID, endpoint.ChannelID)
529+
counterparty := endpoint.Counterparty
530+
proof, proofHeight := counterparty.QueryProof(packetKey)
531+
nextSeqRecv, found := counterparty.Chain.App.GetIBCKeeper().ChannelKeeper.GetNextSequenceRecv(counterparty.Chain.GetContext(), counterparty.ChannelConfig.PortID, counterparty.ChannelID)
531532
require.True(endpoint.Chain.T, found)
532533

533534
timeoutMsg := channeltypes.NewMsgTimeout(

0 commit comments

Comments
 (0)