From bbd887e3eb493fc4bc7a1301e219b1cf712fbf05 Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Tue, 22 Oct 2024 14:06:50 -0500 Subject: [PATCH] core/services/ocr2/plugins/ccip/internal/ccipdata/factory: check error from TypeAndVersion (#14861) * core/services/ocr2/plugins/ccip/internal/ccipdata/factory: check error from TypeAndVersion * .github: CCIP CODEOWNERS (cherry picked from commit cc9bafa3916e4aa56ea48deb7834d20f914e67eb) --- .github/CODEOWNERS | 4 ++++ .../plugins/ccip/internal/ccipdata/factory/price_registry.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5fc21e8c159..3bba74af7ce 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -31,6 +31,10 @@ /core/services/webhook @smartcontractkit/foundations @smartcontractkit/bix-framework /core/services/llo @smartcontractkit/data-streams-engineers +# CCIP +/core/services/ccip @smartcontractkit/ccip +/core/services/ocr2/plugins/ccip @smartcontractkit/ccip + # VRF-related services /core/services/vrf @smartcontractkit/dev-services /core/services/blockhashstore @smartcontractkit/dev-services diff --git a/core/services/ocr2/plugins/ccip/internal/ccipdata/factory/price_registry.go b/core/services/ocr2/plugins/ccip/internal/ccipdata/factory/price_registry.go index 214c3bad73e..cb82e7273bf 100644 --- a/core/services/ocr2/plugins/ccip/internal/ccipdata/factory/price_registry.go +++ b/core/services/ocr2/plugins/ccip/internal/ccipdata/factory/price_registry.go @@ -35,6 +35,9 @@ func initOrClosePriceRegistryReader(ctx context.Context, lggr logger.Logger, ver } contractType, version, err := versionFinder.TypeAndVersion(priceRegistryAddress, cl) + if err != nil { + return nil, err + } if contractType != ccipconfig.PriceRegistry { return nil, errors.Errorf("expected %v got %v", ccipconfig.PriceRegistry, contractType) }