diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-06 14:04:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-06 14:04:17 +0800 |
commit | 75a51af00603236e0b80fe04336494944a32739c (patch) | |
tree | b5e605911321cfc148f5eedec842fbe2c6bd0672 /packages/deployer/test | |
parent | 24454938e51e40ae74809f15bd1f612c69c218ec (diff) | |
download | dexon-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')
-rw-r--r-- | packages/deployer/test/deployer_test.ts | 2 | ||||
-rw-r--r-- | packages/deployer/test/util/provider.ts | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/deployer/test/deployer_test.ts b/packages/deployer/test/deployer_test.ts index eadb535ab..238624220 100644 --- a/packages/deployer/test/deployer_test.ts +++ b/packages/deployer/test/deployer_test.ts @@ -27,7 +27,7 @@ describe('#Deployer', () => { const deployerOpts = { artifactsDir, networkId: constants.networkId, - web3Provider: provider, + provider, defaults: { gasPrice: constants.gasPrice, }, 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 }; |