Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-sekara committed Nov 19, 2024
1 parent 961c8f4 commit c316cc4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions integration-tests/smoke/ccip_usdc_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package smoke

import (
cciptypes "github.com/smartcontractkit/chainlink-ccip/pkg/types/ccipocr3"
"github.com/smartcontractkit/chainlink-ccip/pluginconfig"
"math/big"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -47,10 +49,23 @@ func TestUSDCTokenTransfer(t *testing.T) {
}

e := tenv.Env
state, err := ccdeploy.LoadOnchainState(e)
require.NoError(t, err)

allChainSelectors := maps.Keys(e.Chains)
sourceChain := allChainSelectors[0]
destChain := allChainSelectors[1]

feeds := state.Chains[tenv.FeedChainSel].USDFeeds
tokenConfig := ccdeploy.NewTokenConfig()
tokenConfig.UpsertTokenInfo(ccdeploy.LinkSymbol,
pluginconfig.TokenInfo{
AggregatorAddress: cciptypes.UnknownEncodedAddress(feeds[ccdeploy.LinkSymbol].Address().String()),
Decimals: ccdeploy.LinkDecimals,
DeviationPPB: cciptypes.NewBigIntFromInt64(1e9),
},
)

output, err := changeset.DeployPrerequisites(e, changeset.DeployPrerequisiteConfig{
ChainSelectors: e.AllChainSelectors(),
})
Expand All @@ -62,7 +77,7 @@ func TestUSDCTokenTransfer(t *testing.T) {
HomeChainSel: tenv.HomeChainSel,
FeedChainSel: tenv.FeedChainSel,
ChainsToDeploy: e.AllChainSelectors(),
TokenConfig: ccdeploy.NewTokenConfig(),
TokenConfig: tokenConfig,
MCMSConfig: ccdeploy.NewTestMCMSConfig(t, e),
OCRSecrets: deployment.XXXGenerateTestOCRSecrets(),
USDCConfig: ccdeploy.USDCConfig{
Expand All @@ -77,7 +92,7 @@ func TestUSDCTokenTransfer(t *testing.T) {
require.NoError(t, err)
require.NoError(t, e.ExistingAddresses.Merge(output.AddressBook))

state, err := ccdeploy.LoadOnchainState(e)
state, err = ccdeploy.LoadOnchainState(e)
require.NoError(t, err)

srcUSDC, dstUSDC, err := ccdeploy.ConfigureUSDCTokenPools(lggr, e.Chains, sourceChain, destChain, state)
Expand Down

0 comments on commit c316cc4

Please sign in to comment.