Skip to content

Commit

Permalink
Merge pull request #14901 from smartcontractkit/ccipdata-err-check-2.…
Browse files Browse the repository at this point in the history
…18.0

core/services/ocr2/plugins/ccip/internal/ccipdata/factory: check error from TypeAndVersion [2.18.0]
  • Loading branch information
chainchad authored Oct 22, 2024
2 parents 4527810 + bbd887e commit d21d159
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 d21d159

Please sign in to comment.