From c83e1d57fce55efe5e85221d0442d5f4c0fa0514 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 30 Aug 2017 11:14:01 +0200 Subject: Improve the comment --- src/0x.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit