From 29525854d7e5bbe26742c7a63f9ac03aea2c72e9 Mon Sep 17 00:00:00 2001 From: AnieeG Date: Tue, 26 Nov 2024 12:03:36 -0800 Subject: [PATCH] update logger --- deployment/ccip/changeset/deploy.go | 2 +- deployment/ccip/changeset/test_helpers.go | 2 +- integration-tests/testsetups/test_helpers.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/ccip/changeset/deploy.go b/deployment/ccip/changeset/deploy.go index 5ce45c10e62..9f9930c4eaa 100644 --- a/deployment/ccip/changeset/deploy.go +++ b/deployment/ccip/changeset/deploy.go @@ -446,7 +446,7 @@ func deployCCIPContracts( e.Logger.Errorw("Failed to load existing onchain state", "err", err) return err } - tokenInfo := c.TokenConfig.GetTokenInfo(nil, state.Chains[c.FeedChainSel].LinkToken, state.Chains[c.FeedChainSel].Weth9) + tokenInfo := c.TokenConfig.GetTokenInfo(e.Logger, state.Chains[c.FeedChainSel].LinkToken, state.Chains[c.FeedChainSel].Weth9) ocrParams := make(map[uint64]CCIPOCRParams) for _, chain := range c.ChainsToDeploy { ocrParams[chain] = DefaultOCRParams(c.FeedChainSel, tokenInfo) diff --git a/deployment/ccip/changeset/test_helpers.go b/deployment/ccip/changeset/test_helpers.go index 5d961953fc5..c16bead2cd2 100644 --- a/deployment/ccip/changeset/test_helpers.go +++ b/deployment/ccip/changeset/test_helpers.go @@ -330,7 +330,7 @@ func NewMemoryEnvironmentWithJobsAndContracts(t *testing.T, lggr logger.Logger, }) } - tokenInfo := tokenConfig.GetTokenInfo(nil, state.Chains[e.FeedChainSel].LinkToken, state.Chains[e.FeedChainSel].Weth9) + tokenInfo := tokenConfig.GetTokenInfo(e.Env.Logger, state.Chains[e.FeedChainSel].LinkToken, state.Chains[e.FeedChainSel].Weth9) for _, chain := range allChains { timelocksPerChain[chain] = state.Chains[chain].Timelock ocrParams[chain] = DefaultOCRParams(e.FeedChainSel, tokenInfo) diff --git a/integration-tests/testsetups/test_helpers.go b/integration-tests/testsetups/test_helpers.go index 10ba8d1787b..f49abdcc8ab 100644 --- a/integration-tests/testsetups/test_helpers.go +++ b/integration-tests/testsetups/test_helpers.go @@ -219,7 +219,7 @@ func NewLocalDevEnvironment( } require.NotNil(t, state.Chains[feedSel].LinkToken) require.NotNil(t, state.Chains[feedSel].Weth9) - tokenInfo := tokenConfig.GetTokenInfo(nil, state.Chains[feedSel].LinkToken, state.Chains[feedSel].Weth9) + tokenInfo := tokenConfig.GetTokenInfo(env.Logger, state.Chains[feedSel].LinkToken, state.Chains[feedSel].Weth9) for _, chain := range allChains { timelocksPerChain[chain] = state.Chains[chain].Timelock ocrParams[chain] = changeset.DefaultOCRParams(feedSel, tokenInfo)