diff --git a/.env.example b/.env.example index 531284672..61ee5578f 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,5 @@ +INFURA_PROJECT_ID="xxx" + # Local config NODE_URI='http://localhost:8545' METADATA_STORE_URI='http://aquarius:5000' diff --git a/app.config.js b/app.config.js index 29c348c86..535847b31 100644 --- a/app.config.js +++ b/app.config.js @@ -12,5 +12,6 @@ module.exports = { verbose: 3 }, // Main, Rinkeby, Kovan - networks: [1, 4, 42] + networks: [1, 4, 42], + infuraProjectId: process.env.INFURA_PROJECT_ID } diff --git a/src/utils/wallet.ts b/src/utils/wallet.ts index 2203c46fe..1e40b2632 100644 --- a/src/utils/wallet.ts +++ b/src/utils/wallet.ts @@ -1,5 +1,5 @@ import { OceanProviderValue } from '@oceanprotocol/react' -import { networks } from '../../app.config' +import { networks, infuraProjectId } from '../../app.config' export async function connectWallet( connect: OceanProviderValue['connect'] @@ -12,7 +12,7 @@ export async function connectWallet( walletconnect: { package: WalletConnectProvider, // required options: { - infuraId: 'INFURA_ID' // required + infuraId: infuraProjectId // required } } }