aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/test/util/provider.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-06 14:04:17 +0800
committerFabio Berger <me@fabioberger.com>2018-04-06 14:04:17 +0800
commit75a51af00603236e0b80fe04336494944a32739c (patch)
treeb5e605911321cfc148f5eedec842fbe2c6bd0672 /packages/deployer/test/util/provider.ts
parent24454938e51e40ae74809f15bd1f612c69c218ec (diff)
downloaddexon-sol-tools-75a51af00603236e0b80fe04336494944a32739c.tar
dexon-sol-tools-75a51af00603236e0b80fe04336494944a32739c.tar.gz
dexon-sol-tools-75a51af00603236e0b80fe04336494944a32739c.tar.bz2
dexon-sol-tools-75a51af00603236e0b80fe04336494944a32739c.tar.lz
dexon-sol-tools-75a51af00603236e0b80fe04336494944a32739c.tar.xz
dexon-sol-tools-75a51af00603236e0b80fe04336494944a32739c.tar.zst
dexon-sol-tools-75a51af00603236e0b80fe04336494944a32739c.zip
Use provider over web3 in deployer, dev-utils and subprovider tests, rename subprovider to ganacheSubprovider in test util
Diffstat (limited to 'packages/deployer/test/util/provider.ts')
-rw-r--r--packages/deployer/test/util/provider.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/deployer/test/util/provider.ts b/packages/deployer/test/util/provider.ts
index bc0f55028..e0fcb362a 100644
--- a/packages/deployer/test/util/provider.ts
+++ b/packages/deployer/test/util/provider.ts
@@ -1,6 +1,9 @@
import { web3Factory } from '@0xproject/dev-utils';
+import { Provider } from '@0xproject/types';
import * as Web3 from 'web3';
-const web3ProviderConfig = { shouldUseInProcessGanache: true };
-const web3Instance = web3Factory.create(web3ProviderConfig);
-export const provider = web3Instance.currentProvider;
+const providerConfigs = { shouldUseInProcessGanache: true };
+const web3Instance = web3Factory.create(providerConfigs);
+const provider: Provider = web3Instance.currentProvider;
+
+export { provider };