Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Nov 26, 2024
1 parent 2952585 commit a8bc462
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deployment/ccip/changeset/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,10 @@ func deployCCIPContracts(
e.Logger.Errorw("Failed to load existing onchain state", "err", err)
return err
}
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 {
tokenInfo := c.TokenConfig.GetTokenInfo(e.Logger, state.Chains[chain].LinkToken, state.Chains[chain].Weth9)
ocrParams[chain] = DefaultOCRParams(c.FeedChainSel, tokenInfo)
}
c.OCRParams = ocrParams
Expand Down
2 changes: 1 addition & 1 deletion deployment/ccip/changeset/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ func NewMemoryEnvironmentWithJobsAndContracts(t *testing.T, lggr logger.Logger,
})
}

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
tokenInfo := tokenConfig.GetTokenInfo(e.Env.Logger, state.Chains[chain].LinkToken, state.Chains[chain].Weth9)
ocrParams[chain] = DefaultOCRParams(e.FeedChainSel, tokenInfo)
}
// Deploy second set of changesets to deploy and configure the CCIP contracts.
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/testsetups/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ func NewLocalDevEnvironment(
}
require.NotNil(t, state.Chains[feedSel].LinkToken)
require.NotNil(t, 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
tokenInfo := tokenConfig.GetTokenInfo(env.Logger, state.Chains[chain].LinkToken, state.Chains[chain].Weth9)
ocrParams[chain] = changeset.DefaultOCRParams(feedSel, tokenInfo)
}
// Deploy second set of changesets to deploy and configure the CCIP contracts.
Expand Down

0 comments on commit a8bc462

Please sign in to comment.