mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-09 17:45:38 +00:00
c9a06ec1c2
* Remove Warning: React.createFactory() is deprecated * make TS recognize Window definition by adding an empty export * Silent MM warning ethereum.autoRefreshOnNetworkChange * remove warning when requesting data from contract with null address.
8 lines
188 B
JavaScript
8 lines
188 B
JavaScript
import Web3 from 'web3'
|
|
|
|
const window = global.window || {}
|
|
window.web3 = {}
|
|
window.web3.currentProvider = new Web3.providers.HttpProvider('http://localhost:8545')
|
|
|
|
global.window = window
|