aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 17:14:01 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 17:14:01 +0800
commitc83e1d57fce55efe5e85221d0442d5f4c0fa0514 (patch)
tree4da24bf24faf6af16ce9000f723d90155e3ba60e
parent60ad5024ce697c043c55005ffee0ab5319fc6f45 (diff)
downloaddexon-sol-tools-c83e1d57fce55efe5e85221d0442d5f4c0fa0514.tar
dexon-sol-tools-c83e1d57fce55efe5e85221d0442d5f4c0fa0514.tar.gz
dexon-sol-tools-c83e1d57fce55efe5e85221d0442d5f4c0fa0514.tar.bz2
dexon-sol-tools-c83e1d57fce55efe5e85221d0442d5f4c0fa0514.tar.lz
dexon-sol-tools-c83e1d57fce55efe5e85221d0442d5f4c0fa0514.tar.xz
dexon-sol-tools-c83e1d57fce55efe5e85221d0442d5f4c0fa0514.tar.zst
dexon-sol-tools-c83e1d57fce55efe5e85221d0442d5f4c0fa0514.zip
Improve the comment
-rw-r--r--src/0x.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/0x.ts b/src/0x.ts
index a395d6dd7..ba222f2c9 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -166,8 +166,8 @@ export class ZeroEx {
assert.isWeb3Provider('provider', provider);
if (_.isUndefined((provider as any).sendAsync)) {
// Web3@1.0 provider doesn't support synchronous http requests,
- // so it only has `send` method, instead of `send and `sendAsync` in web3@0.x.x
- // That's why we reassign the send method.
+ // 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;
}
this._web3Wrapper = new Web3Wrapper(provider);