diff --git a/.env b/.env index 264d97b..21ead4b 100644 --- a/.env +++ b/.env @@ -1,3 +1,5 @@ VITE_INFO_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/integral-core VITE_LIMIT_ORDERS_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/integral-limit-order -VITE_BLOCKS_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/goerli-blocks \ No newline at end of file +VITE_BLOCKS_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/goerli-blocks +VITE_INFURA_RPC=https://goerli.infura.io/v3/5c55489ae3414b8b9a1a328b577f89bb +VITE_WALLETCONNECT_PROJECT_ID=f370559ba7976e89ed93819ecdc03c64 \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 5ec358d..3cc20ae 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,7 +6,7 @@ import { WagmiConfig } from 'wagmi' import Layout from "@/components/common/Layout" import { defineChain } from "viem" -const projectId = 'f370559ba7976e89ed93819ecdc03c64' +const projectId = import.meta.env.VITE_WALLETCONNECT_PROJECT_ID const goerliChain = defineChain({ id: 5, @@ -15,10 +15,10 @@ const goerliChain = defineChain({ nativeCurrency: { name: 'Goerli Ether', symbol: 'ETH', decimals: 18 }, rpcUrls: { default: { - http: ['https://goerli.infura.io/v3/5c55489ae3414b8b9a1a328b577f89bb'], + http: [import.meta.env.VITE_INFURA_RPC], }, public: { - http: ['https://goerli.infura.io/v3/5c55489ae3414b8b9a1a328b577f89bb'], + http: [import.meta.env.VITE_INFURA_RPC], }, }, blockExplorers: {