Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Dec 17, 2024
1 parent cb923b0 commit 6bb2a6d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions deployment/ccip/changeset/v1_5/cs_jobspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ func jobSpecsForLane(
if err != nil {
return nil, fmt.Errorf("failed to parse chain ID %s for chain %s: %w", destEVMChainIdStr, destChain.String(), err)
}
destChainDetails, err := chain_selectors.GetChainDetailsByChainIDAndFamily(destEVMChainIdStr, chain_selectors.FamilyEVM)
if err != nil {
return nil, fmt.Errorf("failed to get chain details for chain ID %s: %w", destEVMChainIdStr, err)
}
ccipJobParam := integrationtesthelpers.CCIPJobSpecParams{
OffRamp: destChainState.EVM2EVMOffRamp[cfg.SourceChainSelector].Address(),
CommitStore: destChainState.CommitStore[cfg.SourceChainSelector].Address(),
Expand All @@ -116,7 +112,10 @@ func jobSpecsForLane(
P2PV2Bootstrappers: nodes.BootstrapLocators(),
}
if !node.IsBootstrap {
ocrCfg := node.SelToOCRConfig[destChainDetails]
ocrCfg, found := node.OCRConfigForChainSelector(cfg.DestinationChainSelector)
if !found {
return nil, fmt.Errorf("OCR config not found for chain %s", destChain.String())
}
ocrKeyBundleID := ocrCfg.KeyBundleID
transmitterID := ocrCfg.TransmitAccount
commitSpec, err := ccipJobParam.CommitJobSpec()
Expand Down

0 comments on commit 6bb2a6d

Please sign in to comment.