Skip to content

Commit

Permalink
fix: wagmiConfig and .env file #4
Browse files Browse the repository at this point in the history
  • Loading branch information
nadyasav committed Oct 9, 2023
1 parent 196ed2f commit 1b29205
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 798 deletions.
7 changes: 1 addition & 6 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
"dependencies": {
"@rainbow-me/rainbowkit": "^1.1.1",
"@vitejs/plugin-react-refresh": "^1.3.6",
"@web3modal/wagmi": "^3.0.2",
"buffer": "^6.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^1.15.4",
"vite-plugin-node-polyfills": "^0.8.2",
"wagmi": "^1.4.3"
},
"devDependencies": {
Expand All @@ -26,12 +23,10 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"dotenv": "^16.3.1",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-env-compatible": "^1.1.1"
"vite": "^4.4.5"
}
}
7 changes: 2 additions & 5 deletions frontend/src/wagmiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ import {configureChains, createConfig, mainnet} from "wagmi";
import {polygon} from "@wagmi/core/chains";
import {getDefaultWallets} from "@rainbow-me/rainbowkit";
import { arbitrum, base, optimism, zora } from 'viem/chains';
import {config} from "dotenv";


config();

const PROJECT_ID = 'f5f4ef3634a6aa0af5a1d5516608377a';
const PROJECT_ID = import.meta.env.VITE_PROJECT_ID!;
console.log('walletConnect PROJECT_ID: ', PROJECT_ID);

export const { chains, publicClient } = configureChains(
[mainnet, polygon, optimism, arbitrum, base, zora],
Expand Down
19 changes: 0 additions & 19 deletions frontend/vite.config.ts

This file was deleted.

Loading

0 comments on commit 1b29205

Please sign in to comment.