-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15fd50c
commit 5ba97a4
Showing
5 changed files
with
20 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/arb-token-bridge-ui/src/util/wagmi/getChainByChainId.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Chain } from 'wagmi' | ||
import { chainList } from './setup' | ||
|
||
export function getChainByChainId(chainId: number): Chain { | ||
const chain = chainList.find(chain => chain.id === chainId) | ||
|
||
if (!chain) { | ||
throw new Error(`[getWagmiChain] Unexpected chain id: ${chainId}`) | ||
} | ||
|
||
return chain | ||
} |
68 changes: 0 additions & 68 deletions
68
packages/arb-token-bridge-ui/src/util/wagmi/getWagmiChain.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters