diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-08-30 17:14:01 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-08-30 17:14:01 +0800 |
commit | c83e1d57fce55efe5e85221d0442d5f4c0fa0514 (patch) | |
tree | 4da24bf24faf6af16ce9000f723d90155e3ba60e /src | |
parent | 60ad5024ce697c043c55005ffee0ab5319fc6f45 (diff) | |
download | dexon-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
Diffstat (limited to 'src')
-rw-r--r-- | src/0x.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |