Skip to content

Commit

Permalink
fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsuryansh committed Nov 18, 2024
1 parent 47f674b commit 1619dff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration-tests/smoke/ccip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ func TestTokenTransfer(t *testing.T) {
dstToken = dstToken2
}
} else if scenario.srcChain == tenv.FeedChainSel && scenario.dstChain == tenv.HomeChainSel {
if tokenAmount.Token == dstToken1.Address() {
dstToken = srcToken1
} else if tokenAmount.Token == dstToken2.Address() {
dstToken = srcToken2
if tokenAmount.Token == srcToken1.Address() {
dstToken = dstToken1
} else if tokenAmount.Token == srcToken2.Address() {
dstToken = dstToken2
}
}
require.NotNil(t, dstToken, "Destination token not found")
Expand All @@ -320,7 +320,7 @@ func TestTokenTransfer(t *testing.T) {
require.NoError(t, err)

expectedBalance := tokenAmount.Amount
if scenario.name == "Send N tokens to contract" && tokenAmount.Token == dstToken1.Address() {
if scenario.name == "Send N tokens to contract" && tokenAmount.Token == srcToken1.Address() {
expectedBalance = new(big.Int).Add(big.NewInt(1e18), big.NewInt(3e18))
}

Expand Down

0 comments on commit 1619dff

Please sign in to comment.