mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-12 02:54:09 +00:00
fix comment placement for web3ro
This commit is contained in:
parent
8c1465c740
commit
ea640cb119
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user