1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

add infura project id

This commit is contained in:
Matthias Kretschmann 2020-07-14 18:26:40 +02:00
parent a9ad17a6e9
commit 7a9e658d03
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,5 @@
INFURA_PROJECT_ID="xxx"
# Local config
NODE_URI='http://localhost:8545'
METADATA_STORE_URI='http://aquarius:5000'

View File

@ -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
}

View File

@ -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
}
}
}