Skip to content

Commit

Permalink
fix: use public l1 rpc providers
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Mar 24, 2024
1 parent 4e87f01 commit c0ea54d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/wagmi.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fallback, http } from "@wagmi/core";
import { zkSync, type Chain, zkSyncSepoliaTestnet, zkSyncTestnet } from "@wagmi/core/chains";
import { defaultWagmiConfig } from "@web3modal/wagmi";

Expand Down Expand Up @@ -47,8 +48,12 @@ const getAllChains = () => {
return chains;
};

const chains = getAllChains();
export const wagmiConfig = defaultWagmiConfig({
chains: getAllChains() as any,
transports: Object.fromEntries(
chains.map((chain) => [chain.id, fallback(chain.rpcUrls.default.http.map((e) => http(e)))])
),
projectId: process.env.WALLET_CONNECT_PROJECT_ID,
metadata,
enableCoinbase: false,
Expand Down

0 comments on commit c0ea54d

Please sign in to comment.