Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
solidovic committed Sep 24, 2024
1 parent 3a00f17 commit a97836b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions consts/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export const SDK_SUPPORTED_MULTICHAIN_CHAINS = [
];

// TODO: move to @lidofinance/lido-ethereum-sdk package
export const isSDKSupportedL2Chain = (chainId) => {
return SDK_SUPPORTED_MULTICHAIN_CHAINS.indexOf(chainId) > -1;
export const isSDKSupportedL2Chain = (
chainId: CHAINS | LIDO_MULTICHAIN_CHAINS,
) => {
return (
SDK_SUPPORTED_MULTICHAIN_CHAINS.indexOf(chainId as LIDO_MULTICHAIN_CHAINS) >
-1
);
};

0 comments on commit a97836b

Please sign in to comment.