Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Oct 9, 2024
1 parent d49fc26 commit f403266
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/getParentChainFromId.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { extractChain } from 'viem';
import { Chain, extractChain } from 'viem';

import { ParentChain, validateParentChain } from '../types/ParentChain';
import { validateParentChain } from '../types/ParentChain';
import { chains } from '../chains';
import { customChains } from '../customChains';

export function getParentChainFromId(chainId: number): ParentChain {
export function getParentChainFromId(chainId: number): Chain {
const { chainId: parentChainId } = validateParentChain(chainId);

return extractChain({
chains: [...chains, ...customChains],
id: parentChainId,
}) as ParentChain;
});
}

0 comments on commit f403266

Please sign in to comment.