aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-05 00:51:17 +0800
committerGitHub <noreply@github.com>2018-07-05 00:51:17 +0800
commit5176d929fa6d3c6ce414448ea2441bd450f04e3c (patch)
tree6ea9d1f9c9506bee42dbbe0543a8c407c6c5d05e /packages/dev-utils
parentade620f4f7d9ac1e5726681aefcbddf742915a84 (diff)
parent8adc6f0faadb46f88c1f9738b04039d037cfbcb9 (diff)
downloaddexon-sol-tools-5176d929fa6d3c6ce414448ea2441bd450f04e3c.tar
dexon-sol-tools-5176d929fa6d3c6ce414448ea2441bd450f04e3c.tar.gz
dexon-sol-tools-5176d929fa6d3c6ce414448ea2441bd450f04e3c.tar.bz2
dexon-sol-tools-5176d929fa6d3c6ce414448ea2441bd450f04e3c.tar.lz
dexon-sol-tools-5176d929fa6d3c6ce414448ea2441bd450f04e3c.tar.xz
dexon-sol-tools-5176d929fa6d3c6ce414448ea2441bd450f04e3c.tar.zst
dexon-sol-tools-5176d929fa6d3c6ce414448ea2441bd450f04e3c.zip
Merge pull request #817 from 0xProject/remove-web3
Remove Web3 Dependencies (exept for in web3-wrapper)
Diffstat (limited to 'packages/dev-utils')
-rw-r--r--packages/dev-utils/package.json1
-rw-r--r--packages/dev-utils/src/web3_factory.ts5
2 files changed, 0 insertions, 6 deletions
diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json
index ebb2aeb41..15f8d6ab0 100644
--- a/packages/dev-utils/package.json
+++ b/packages/dev-utils/package.json
@@ -52,7 +52,6 @@
"@0xproject/typescript-typings": "^0.4.1",
"@0xproject/web3-wrapper": "^0.7.1",
"lodash": "^4.17.4",
- "web3": "^0.20.0",
"web3-provider-engine": "14.0.6"
},
"publishConfig": {
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');