Skip to content

Commit

Permalink
fix util tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Mar 30, 2023
1 parent d404797 commit 6a289df
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions util/ibc/ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
ibctransfertypes "github.com/cosmos/ibc-go/v6/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v6/modules/core/02-client/types"
channeltypes "github.com/cosmos/ibc-go/v6/modules/core/04-channel/types"
"github.com/tendermint/tendermint/crypto"
"gotest.tools/v3/assert"
)
Expand All @@ -26,21 +24,10 @@ func TestGetFundsFromPacket(t *testing.T) {
amount,
AddressFromString("a3"),
AddressFromString("a4"),
"memo",
)

packet := channeltypes.NewPacket(
data.GetBytes(),
uint64(1),
"transfer",
"channel-0",
"transfer",
"channel-0",
clienttypes.NewHeight(0, 100),
0,
)

famount, fdenom, err := GetFundsFromPacket(packet)

famount, fdenom, err := GetFundsFromPacket(data.GetBytes())
assert.NilError(t, err)
assert.Equal(t, denom, fdenom)
assert.Equal(t, famount.String(), amount)
Expand Down

0 comments on commit 6a289df

Please sign in to comment.