aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-13 21:25:48 +0800
committerFabio Berger <me@fabioberger.com>2018-07-13 21:25:48 +0800
commit179c487da958dedda0f1a8cd93a2ce67f169e53c (patch)
treeb9db41ae9d9bc9d9fca5ac95ad0a1d0d77545d56 /packages/subproviders/src
parent350989bbec59b731a11c69237bec8625f2331ce2 (diff)
downloaddexon-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/subproviders/src')
-rw-r--r--packages/subproviders/src/subproviders/rpc_subprovider.ts1
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;
}