aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-30 17:34:26 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-10 03:11:45 +0800
commit3ddb203317065a85531a31daa1ae2d73232ca6df (patch)
tree259e473b1e648d3c7dac712ce4363a40964abff9 /src/0x.ts
parent84b8e77aaae3a2c6848bcd1ffab78a2de81e6138 (diff)
downloaddexon-sol-tools-3ddb203317065a85531a31daa1ae2d73232ca6df.tar
dexon-sol-tools-3ddb203317065a85531a31daa1ae2d73232ca6df.tar.gz
dexon-sol-tools-3ddb203317065a85531a31daa1ae2d73232ca6df.tar.bz2
dexon-sol-tools-3ddb203317065a85531a31daa1ae2d73232ca6df.tar.lz
dexon-sol-tools-3ddb203317065a85531a31daa1ae2d73232ca6df.tar.xz
dexon-sol-tools-3ddb203317065a85531a31daa1ae2d73232ca6df.tar.zst
dexon-sol-tools-3ddb203317065a85531a31daa1ae2d73232ca6df.zip
Move provider altering logic to Web3Wrapper
Diffstat (limited to 'src/0x.ts')
-rw-r--r--src/0x.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 4bd37c260..0fb968ef3 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -177,12 +177,6 @@ export class ZeroEx {
if (!_.isUndefined(config)) {
assert.doesConformToSchema('config', config, zeroExConfigSchema);
}
- if (_.isUndefined((provider as any).sendAsync)) {
- // Web3@1.0 provider doesn't support synchronous http requests,
- // so it only has an async `send` method, instead of a `send` and `sendAsync` in web3@0.x.x`
- // We re-assign the send method so that Web3@1.0 providers work with 0x.js
- (provider as any).sendAsync = (provider as any).send;
- }
const artifactJSONs = _.values(artifacts);
const abiArrays = _.map(artifactJSONs, artifact => artifact.abi);
this._abiDecoder = new AbiDecoder(abiArrays);