aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/web3_factory.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-08-17 12:06:41 +0800
committerFabio Berger <me@fabioberger.com>2017-08-17 12:06:41 +0800
commitb5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7 (patch)
tree1e99ee1f85395534fbfb13e19ac19a44431584dd /test/utils/web3_factory.ts
parent20045a438ac60e319f23df9a199d81cfe655049b (diff)
downloaddexon-sol-tools-b5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7.tar
dexon-sol-tools-b5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7.tar.gz
dexon-sol-tools-b5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7.tar.bz2
dexon-sol-tools-b5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7.tar.lz
dexon-sol-tools-b5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7.tar.xz
dexon-sol-tools-b5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7.tar.zst
dexon-sol-tools-b5bfcc772acc2d7c538f3809e7ab1890b9f7b1a7.zip
set default value to hasAddresses boolean
Diffstat (limited to 'test/utils/web3_factory.ts')
-rw-r--r--test/utils/web3_factory.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils/web3_factory.ts b/test/utils/web3_factory.ts
index f89c907f6..b20070c74 100644
--- a/test/utils/web3_factory.ts
+++ b/test/utils/web3_factory.ts
@@ -16,7 +16,7 @@ export const web3Factory = {
web3.setProvider(provider);
return web3;
},
- getRpcProvider(hasAddresses: boolean): Web3.Provider {
+ getRpcProvider(hasAddresses: boolean = true): Web3.Provider {
const provider = new ProviderEngine();
const rpcUrl = `http://${constants.RPC_HOST}:${constants.RPC_PORT}`;
if (!hasAddresses) {