Skip to content

Commit

Permalink
feat: update ict test for orai-osmosis ibc
Browse files Browse the repository at this point in the history
  • Loading branch information
ledanghuy1811 committed Jan 7, 2025
1 parent 460f639 commit 6a77672
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions tests/interchaintest/helpers/tokenfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@ func TxTokenFactoryForceTransfer(
user ibc.Wallet,
denom string,
amount uint64,
fromAddr string,
fromAddr string,
toAddr string,
) string {
) (string, error) {
tn := chain.GetNode()
txHash, err := tn.TokenFactoryForceTransferDenom(ctx, user.KeyName(), denom, amount, fromAddr, toAddr)
require.NoError(t, err)

return txHash
return txHash, err
}

func TxTokenFactoryModifyMetadata(
Expand Down
4 changes: 3 additions & 1 deletion tests/interchaintest/orai_osmo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ func TestOraiOsmoIbc(t *testing.T) {
require.Equal(t, userOsmosisBalance, uint64(amountToSend.Int64()))

// try to force transfer tokenfactory from escrowed address
_ = helpers.TxTokenFactoryForceTransfer(t, ctx, orai, oraiUser, expectedDenom, uint64(amountToSend.Int64()), escrowedAddress, oraiUserAddress)
_, err = helpers.TxTokenFactoryForceTransfer(t, ctx, orai, oraiUser, expectedDenom, uint64(amountToSend.Int64()), escrowedAddress, oraiUserAddress)
require.Error(t, err)

escrowedBalance, err = helpers.QueryBalance(t, ctx, orai, expectedDenom, escrowedAddress)
fmt.Println("escrowed balance: ", escrowedBalance)
require.NoError(t, err)
Expand Down

0 comments on commit 6a77672

Please sign in to comment.