From ea640cb119ae43e0efcd80ffcbfc6fa145196098 Mon Sep 17 00:00:00 2001 From: mmv Date: Fri, 25 Oct 2019 17:11:06 +0400 Subject: [PATCH] fix comment placement for web3ro --- src/logic/wallets/getWeb3.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/logic/wallets/getWeb3.js b/src/logic/wallets/getWeb3.js index 083bcbaf..45564cc4 100644 --- a/src/logic/wallets/getWeb3.js +++ b/src/logic/wallets/getWeb3.js @@ -62,14 +62,13 @@ const getInfuraUrl = () => { return `https://${isMainnet ? '' : 'rinkeby.'}infura.io:443/v3/${process.env.REACT_APP_INFURA_TOKEN}` } +// With some wallets from web3connect you have to use their provider instance only for signing +// And our own one to fetch data export const web3RO = new Web3(new Web3.providers.HttpProvider(getInfuraUrl())) let web3 = web3RO export const getWeb3 = () => web3 -// With some wallets from web3connect you have to use their provider instance only for signing -// And our own one to fetch data - export const resetWeb3 = () => { web3 = web3RO }