Skip to content

Commit

Permalink
Filter out ZKSync chains
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Jan 18, 2025
1 parent 85266fd commit 068b856
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/chains/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
ChainMap,
ChainMetadata,
ChainMetadataSchema,
ChainTechnicalStack,
mergeChainMetadataMap,
} from '@hyperlane-xyz/sdk';
import { objFilter, objMap, promiseObjAll, ProtocolType } from '@hyperlane-xyz/utils';
Expand Down Expand Up @@ -54,7 +55,8 @@ export async function assembleChainMetadata(
// TODO remove if/when this app isn't EVM-only
const evmRegistryChainMetadata = objFilter(
registryChainMetadata,
(_, m): m is ChainMetadata => m.protocol === ProtocolType.Ethereum,
(_, m): m is ChainMetadata =>
m.protocol === ProtocolType.Ethereum && m.technicalStack !== ChainTechnicalStack.ZkSync,
);

let chainMetadata = mergeChainMetadataMap(evmRegistryChainMetadata, filesystemMetadata);
Expand Down

0 comments on commit 068b856

Please sign in to comment.