Skip to content

Commit

Permalink
Fix add lane
Browse files Browse the repository at this point in the history
  • Loading branch information
connorwstein committed Nov 18, 2024
1 parent a5c2f47 commit 9ac5955
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion deployment/ccip/add_lane_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func TestAddLane(t *testing.T) {
HomeChainSel: e.HomeChainSel,
FeedChainSel: e.FeedChainSel,
TokenConfig: tokenConfig,
MCMSConfig: NewTestMCMSConfig(t, e.Env),
ChainsToDeploy: []uint64{chain1, chain2},
OCRSecrets: deployment.XXXGenerateTestOCRSecrets(),
})
Expand Down
8 changes: 7 additions & 1 deletion deployment/ccip/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ type DeployCCIPContractConfig struct {
// It then deploys the rest of the CCIP chain contracts to the selected chains
// registers the nodes with the capability registry and creates a DON for
// each new chain. TODO: Might be better to break this down a bit?
func DeployCCIPContracts(e deployment.Environment, ab deployment.AddressBook, c DeployCCIPContractConfig) error {
func DeployCCIPContracts(
e deployment.Environment,
ab deployment.AddressBook,
c DeployCCIPContractConfig) error {
if c.OCRSecrets.IsEmpty() {
return fmt.Errorf("OCR secrets are empty")
}
Expand Down Expand Up @@ -401,6 +404,9 @@ func DeployChainContracts(
if chainState.Weth9 == nil {
return fmt.Errorf("weth9 not found for chain %d, deploy the prerequisites first", chain.Selector)
}
if chainState.Timelock == nil {
return fmt.Errorf("timelock not found for chain %d, deploy the mcms contracts first", chain.Selector)
}
weth9Contract := chainState.Weth9
if chainState.LinkToken == nil {
return fmt.Errorf("link token not found for chain %d, deploy the prerequisites first", chain.Selector)
Expand Down

0 comments on commit 9ac5955

Please sign in to comment.