Skip to content

Commit

Permalink
core/services/ocr2/plugins/ccip/internal/ccipdata/factory: check erro…
Browse files Browse the repository at this point in the history
…r from TypeAndVersion (#14861)

* core/services/ocr2/plugins/ccip/internal/ccipdata/factory: check error from TypeAndVersion

* .github: CCIP CODEOWNERS

(cherry picked from commit cc9bafa)
  • Loading branch information
jmank88 committed Oct 22, 2024
1 parent 4527810 commit bbd887e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit bbd887e

Please sign in to comment.