diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-04 06:23:40 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-04 06:23:40 +0800 |
commit | 5f2c303bd8ce983533863b54e14856b39b578035 (patch) | |
tree | a847df169c05ccfeb7d3604df434328177c1f844 /packages/dev-utils/src | |
parent | 6aa4984fed55be7ba4fe0caf0f994a11bccdc155 (diff) | |
download | dexon-sol-tools-5f2c303bd8ce983533863b54e14856b39b578035.tar dexon-sol-tools-5f2c303bd8ce983533863b54e14856b39b578035.tar.gz dexon-sol-tools-5f2c303bd8ce983533863b54e14856b39b578035.tar.bz2 dexon-sol-tools-5f2c303bd8ce983533863b54e14856b39b578035.tar.lz dexon-sol-tools-5f2c303bd8ce983533863b54e14856b39b578035.tar.xz dexon-sol-tools-5f2c303bd8ce983533863b54e14856b39b578035.tar.zst dexon-sol-tools-5f2c303bd8ce983533863b54e14856b39b578035.zip |
Remove hack since latest web3-provider-engine fixed underlying issue
Diffstat (limited to 'packages/dev-utils/src')
-rw-r--r-- | packages/dev-utils/src/web3_factory.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts index 47eef4cbd..362a6c3c6 100644 --- a/packages/dev-utils/src/web3_factory.ts +++ b/packages/dev-utils/src/web3_factory.ts @@ -1,8 +1,3 @@ -// HACK: web3 injects XMLHttpRequest into the global scope and ProviderEngine checks XMLHttpRequest -// to know whether it is running in a browser or node environment. We need it to be undefined since -// we are not running in a browser env. -// Filed issue: https://github.com/ethereum/web3.js/issues/844 -(global as any).XMLHttpRequest = undefined; import ProviderEngine = require('web3-provider-engine'); import RpcSubprovider = require('web3-provider-engine/subproviders/rpc'); |