From 6bb2a6dd7203daf8a5d2276f3702cbd0bfcb7a2f Mon Sep 17 00:00:00 2001 From: AnieeG Date: Mon, 16 Dec 2024 18:40:53 -0800 Subject: [PATCH] updates --- deployment/ccip/changeset/v1_5/cs_jobspec.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deployment/ccip/changeset/v1_5/cs_jobspec.go b/deployment/ccip/changeset/v1_5/cs_jobspec.go index 46ba50eec63..e4f926292a9 100644 --- a/deployment/ccip/changeset/v1_5/cs_jobspec.go +++ b/deployment/ccip/changeset/v1_5/cs_jobspec.go @@ -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(), @@ -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()