aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 17:12:28 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 17:12:28 +0800
commit60ad5024ce697c043c55005ffee0ab5319fc6f45 (patch)
tree35ecb160b921eeb35207a002de14d5c83cb69543 /src/0x.ts
parent5149fcdd74f85a452bb45510721bd7ab20de9f98 (diff)
downloaddexon-sol-tools-60ad5024ce697c043c55005ffee0ab5319fc6f45.tar
dexon-sol-tools-60ad5024ce697c043c55005ffee0ab5319fc6f45.tar.gz
dexon-sol-tools-60ad5024ce697c043c55005ffee0ab5319fc6f45.tar.bz2
dexon-sol-tools-60ad5024ce697c043c55005ffee0ab5319fc6f45.tar.lz
dexon-sol-tools-60ad5024ce697c043c55005ffee0ab5319fc6f45.tar.xz
dexon-sol-tools-60ad5024ce697c043c55005ffee0ab5319fc6f45.tar.zst
dexon-sol-tools-60ad5024ce697c043c55005ffee0ab5319fc6f45.zip
Add assert.isWeb3Provider
Diffstat (limited to 'src/0x.ts')
-rw-r--r--src/0x.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 9613df1be..a395d6dd7 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -163,6 +163,7 @@ export class ZeroEx {
* @return An instance of the 0x.js ZeroEx class.
*/
constructor(provider: Web3Provider, config?: ZeroExConfig) {
+ 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