@@ -341,9 +341,9 @@ func (suite *KeeperTestSuite) TestVerifyPacketCommitment() {
341
341
path = ibctesting .NewPath (suite .chainA , suite .chainB )
342
342
suite .coordinator .Setup (path )
343
343
344
- packet = channeltypes .NewPacket (ibctesting .MockPacketData , 1 , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
345
- err := path .EndpointA .SendPacket (packet )
344
+ sequence , err := path .EndpointA .SendPacket (defaultTimeoutHeight , 0 , ibctesting .MockPacketData )
346
345
suite .Require ().NoError (err )
346
+ packet = channeltypes .NewPacket (ibctesting .MockPacketData , sequence , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
347
347
348
348
// reset variables
349
349
heightDiff = 0
@@ -435,14 +435,14 @@ func (suite *KeeperTestSuite) TestVerifyPacketAcknowledgement() {
435
435
suite .coordinator .Setup (path )
436
436
437
437
// send and receive packet
438
- packet := channeltypes .NewPacket (ibctesting .MockPacketData , 1 , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
439
- err := path .EndpointA .SendPacket (packet )
438
+ sequence , err := path .EndpointA .SendPacket (defaultTimeoutHeight , 0 , ibctesting .MockPacketData )
440
439
suite .Require ().NoError (err )
441
440
442
441
// increment receiving chain's (chainB) time by 2 hour to always pass receive
443
442
suite .coordinator .IncrementTimeBy (time .Hour * 2 )
444
443
suite .coordinator .CommitBlock (suite .chainB )
445
444
445
+ packet := channeltypes .NewPacket (ibctesting .MockPacketData , sequence , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
446
446
err = path .EndpointB .RecvPacket (packet )
447
447
suite .Require ().NoError (err )
448
448
@@ -540,9 +540,9 @@ func (suite *KeeperTestSuite) TestVerifyPacketReceiptAbsence() {
540
540
suite .coordinator .Setup (path )
541
541
542
542
// send, only receive in malleate if applicable
543
- packet = channeltypes .NewPacket (ibctesting .MockPacketData , 1 , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
544
- err := path .EndpointA .SendPacket (packet )
543
+ sequence , err := path .EndpointA .SendPacket (defaultTimeoutHeight , 0 , ibctesting .MockPacketData )
545
544
suite .Require ().NoError (err )
545
+ packet = channeltypes .NewPacket (ibctesting .MockPacketData , sequence , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
546
546
547
547
// reset variables
548
548
heightDiff = 0
@@ -640,14 +640,14 @@ func (suite *KeeperTestSuite) TestVerifyNextSequenceRecv() {
640
640
suite .coordinator .Setup (path )
641
641
642
642
// send and receive packet
643
- packet := channeltypes .NewPacket (ibctesting .MockPacketData , 1 , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
644
- err := path .EndpointA .SendPacket (packet )
643
+ sequence , err := path .EndpointA .SendPacket (defaultTimeoutHeight , 0 , ibctesting .MockPacketData )
645
644
suite .Require ().NoError (err )
646
645
647
646
// increment receiving chain's (chainB) time by 2 hour to always pass receive
648
647
suite .coordinator .IncrementTimeBy (time .Hour * 2 )
649
648
suite .coordinator .CommitBlock (suite .chainB )
650
649
650
+ packet := channeltypes .NewPacket (ibctesting .MockPacketData , sequence , path .EndpointA .ChannelConfig .PortID , path .EndpointA .ChannelID , path .EndpointB .ChannelConfig .PortID , path .EndpointB .ChannelID , defaultTimeoutHeight , 0 )
651
651
err = path .EndpointB .RecvPacket (packet )
652
652
suite .Require ().NoError (err )
653
653
0 commit comments