Skip to content

Commit

Permalink
fix: fix xlayer rpc info
Browse files Browse the repository at this point in the history
  • Loading branch information
bolasblack committed Aug 19, 2024
1 parent 9a10e6c commit 4f8c672
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/evmUtils/evmClients.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Client, createClient, http } from "viem"
import { Client, createClient, fallback, http } from "viem"
import {
bob,
bsc,
Expand All @@ -9,6 +9,8 @@ import {
mode,
modeTestnet,
sepolia,
xLayer,
xLayerTestnet,
} from "viem/chains"
import {
ailayer,
Expand Down Expand Up @@ -137,12 +139,12 @@ export const evmClients: Record<EVMChain, Client> = {
}),

[EVMChain.XLayer]: createClient({
chain: mainnet,
transport: http(),
chain: xLayer,
transport: fallback([http(), http("https://xlayerrpc.okx.com")]),
batch: { multicall: true },
}),
[EVMChain.XLayerTestnet]: createClient({
chain: mainnet,
chain: xLayerTestnet,
transport: http(),
batch: { multicall: true },
}),
Expand Down

0 comments on commit 4f8c672

Please sign in to comment.