From 7a9e658d0318b84d6625da31225ad2d407f2f4fe Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 14 Jul 2020 18:26:40 +0200 Subject: [PATCH] add infura project id --- .env.example | 2 ++ app.config.js | 3 ++- src/utils/wallet.ts | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) 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 } } }