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 | |
parent | 350989bbec59b731a11c69237bec8625f2331ce2 (diff) | |
download | dexon-sol-tools-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar dexon-sol-tools-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar.gz dexon-sol-tools-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar.bz2 dexon-sol-tools-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar.lz dexon-sol-tools-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar.xz dexon-sol-tools-179c487da958dedda0f1a8cd93a2ce67f169e53c.tar.zst dexon-sol-tools-179c487da958dedda0f1a8cd93a2ce67f169e53c.zip |
Add missing assertion
Diffstat (limited to 'packages')
-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; } |