Skip to content

Commit

Permalink
use consturctor for PacketData in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bznein committed Sep 19, 2024
1 parent 382a08d commit 213e5ad
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions modules/apps/transfer/transfer_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,8 @@ func (suite *TransferV2TestSuite) TestHandleMsgV2Transfer() {
suite.Require().NotNil(proof)
suite.Require().False(proofHeight.IsZero())

packetV2 := channeltypesv2.NewPacketV2(1, pathAToB.EndpointB.ChannelID, pathAToB.EndpointA.ChannelID, timeoutTimestamp, channeltypes.PacketData{
SourcePort: "transfer",
DestinationPort: "transfer",
Payload: channeltypes.Payload{
Version: types.V2,
Encoding: "json",
Value: bz,
},
})
packetV2 := channeltypesv2.NewPacketV2(1, pathAToB.EndpointB.ChannelID, pathAToB.EndpointA.ChannelID, timeoutTimestamp,
*channeltypes.NewPacketData("transfer", "transfer", *channeltypes.NewPayload(types.V2, "json", bz)))

msgRecvPacket := &channeltypesv2.MsgRecvPacket{
Packet: packetV2,
Expand Down

0 comments on commit 213e5ad

Please sign in to comment.