aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/test/util
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-04 08:50:24 +0800
committerFabio Berger <me@fabioberger.com>2018-04-04 08:50:24 +0800
commit6c02722f56dd37dd4237248e73d070755f86f318 (patch)
treeeaa9cc4ff755a86573a8227c9a0073db3072397d /packages/deployer/test/util
parent5cfebd2680d9fb103a15381e4c2847934f9f2e42 (diff)
downloaddexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.tar.gz
dexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.tar.zst
dexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.zip
Make deployer tests run on inprocess ganache
Diffstat (limited to 'packages/deployer/test/util')
-rw-r--r--packages/deployer/test/util/constants.ts1
-rw-r--r--packages/deployer/test/util/provider.ts6
2 files changed, 6 insertions, 1 deletions
diff --git a/packages/deployer/test/util/constants.ts b/packages/deployer/test/util/constants.ts
index 5385b8d17..b93081a80 100644
--- a/packages/deployer/test/util/constants.ts
+++ b/packages/deployer/test/util/constants.ts
@@ -2,7 +2,6 @@ import { BigNumber } from '@0xproject/utils';
export const constants = {
networkId: 0,
- jsonrpcUrl: 'http://localhost:8545',
optimizerEnabled: false,
gasPrice: new BigNumber(20000000000),
timeoutMs: 30000,
diff --git a/packages/deployer/test/util/provider.ts b/packages/deployer/test/util/provider.ts
new file mode 100644
index 000000000..bc0f55028
--- /dev/null
+++ b/packages/deployer/test/util/provider.ts
@@ -0,0 +1,6 @@
+import { web3Factory } from '@0xproject/dev-utils';
+import * as Web3 from 'web3';
+
+const web3ProviderConfig = { shouldUseInProcessGanache: true };
+const web3Instance = web3Factory.create(web3ProviderConfig);
+export const provider = web3Instance.currentProvider;