diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 21:25:48 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 21:25:48 +0800 |
commit | 179c487da958dedda0f1a8cd93a2ce67f169e53c (patch) | |
tree | b9db41ae9d9bc9d9fca5ac95ad0a1d0d77545d56 /packages/subproviders/src | |
parent | 350989bbec59b731a11c69237bec8625f2331ce2 (diff) | |
download | dexon-0x-contracts-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar.gz dexon-0x-contracts-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar.zst dexon-0x-contracts-179c487da958dedda0f1a8cd93a2ce67f169e53c.zip |
Add missing assertion
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r-- | packages/subproviders/src/subproviders/rpc_subprovider.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/subproviders/src/subproviders/rpc_subprovider.ts b/packages/subproviders/src/subproviders/rpc_subprovider.ts index dac821d01..3ad0e5325 100644 --- a/packages/subproviders/src/subproviders/rpc_subprovider.ts +++ b/packages/subproviders/src/subproviders/rpc_subprovider.ts @@ -18,6 +18,7 @@ export class RPCSubprovider extends Subprovider { constructor(rpcUrl: string, requestTimeoutMs: number = 20000) { super(); assert.isString('rpcUrl', rpcUrl); + assert.isNumber('requestTimeoutMs', requestTimeoutMs); this._rpcUrl = rpcUrl; this._requestTimeoutMs = requestTimeoutMs; } |