Skip to content

Commit

Permalink
fixes pnpm only
Browse files Browse the repository at this point in the history
  • Loading branch information
Adebesin-Cell committed Jun 29, 2024
1 parent 3cce0a4 commit 4c56898
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/config/wagmi.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { configureChains } from "@wagmi/core";
import { alchemyProvider } from "@wagmi/core/providers/alchemy";
import { publicProvider } from "@wagmi/core/providers/public";
import { mainnet } from "wagmi";
import { configureChains, mainnet } from "wagmi";
import { goerli } from "wagmi/chains";
import { alchemyProvider } from "wagmi/providers/alchemy";
import { publicProvider } from "wagmi/providers/public";

import config from "./index";

const chainArray = config.alchemyChain === "goerli" ? goerli : mainnet;

export const { chains, publicClient } = configureChains(
[chainArray],
[alchemyProvider({ apiKey: config.alchemyApiKey }), publicProvider()]
[chainArray],
[alchemyProvider({ apiKey: config.alchemyApiKey }), publicProvider()],
);

0 comments on commit 4c56898

Please sign in to comment.