aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 16:56:46 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 16:56:46 +0800
commit130a7967aa9c0e4fba5147e5a9c78516b91f78a8 (patch)
tree95baac8a227429ebb885d20973719461d1bb0731 /test/utils
parenta98bb1f7ac2ab02115a28ace15e94ed14d2cf861 (diff)
downloaddexon-sol-tools-130a7967aa9c0e4fba5147e5a9c78516b91f78a8.tar
dexon-sol-tools-130a7967aa9c0e4fba5147e5a9c78516b91f78a8.tar.gz
dexon-sol-tools-130a7967aa9c0e4fba5147e5a9c78516b91f78a8.tar.bz2
dexon-sol-tools-130a7967aa9c0e4fba5147e5a9c78516b91f78a8.tar.lz
dexon-sol-tools-130a7967aa9c0e4fba5147e5a9c78516b91f78a8.tar.xz
dexon-sol-tools-130a7967aa9c0e4fba5147e5a9c78516b91f78a8.tar.zst
dexon-sol-tools-130a7967aa9c0e4fba5147e5a9c78516b91f78a8.zip
Don't create whole web3 object in beta tests
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/web3_factory.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/utils/web3_factory.ts b/test/utils/web3_factory.ts
index 863fa1d07..4785fa858 100644
--- a/test/utils/web3_factory.ts
+++ b/test/utils/web3_factory.ts
@@ -17,12 +17,6 @@ export const web3Factory = {
web3.setProvider(provider);
return web3;
},
- createBeta(): any {
- const provider_beta = this.getProviderBeta();
- const web3_beta = new Web3_beta();
- web3_beta.setProvider(provider_beta);
- return web3_beta;
- },
getRpcProvider(hasAddresses: boolean = true): Web3.Provider {
const provider = new ProviderEngine();
const rpcUrl = `http://${constants.RPC_HOST}:${constants.RPC_PORT}`;
@@ -35,7 +29,7 @@ export const web3Factory = {
provider.start();
return provider;
},
- getProviderBeta(): any {
+ getProviderBeta(): Web3.Provider {
const rpcUrl = `http://${constants.RPC_HOST}:${constants.RPC_PORT}`;
const providerBeta = new Web3_beta.providers.HttpProvider(rpcUrl);
return providerBeta;