Skip to content

Commit

Permalink
feat(bridge-ui): add chainid to rpc provider instance
Browse files Browse the repository at this point in the history
  • Loading branch information
shadab-taiko committed Mar 28, 2023
1 parent e21b176 commit 32cca8e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/bridge-ui/src/provider/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ export const providers: Record<
ChainID,
ethers.providers.StaticJsonRpcProvider
> = {
[L1_CHAIN_ID]: new ethers.providers.StaticJsonRpcProvider(L1_RPC),
[L2_CHAIN_ID]: new ethers.providers.StaticJsonRpcProvider(L2_RPC),
[L1_CHAIN_ID]: new ethers.providers.StaticJsonRpcProvider(
L1_RPC,
L1_CHAIN_ID,
),
[L2_CHAIN_ID]: new ethers.providers.StaticJsonRpcProvider(
L2_RPC,
L2_CHAIN_ID,
),
};

0 comments on commit 32cca8e

Please sign in to comment.