fix comment placement for web3ro

This commit is contained in:
mmv 2019-10-25 17:11:06 +04:00
parent 8c1465c740
commit ea640cb119
1 changed files with 2 additions and 3 deletions

View File

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