aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/test/util/provider.ts
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/provider.ts
parent5cfebd2680d9fb103a15381e4c2847934f9f2e42 (diff)
downloaddexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.tar
dexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.tar.gz
dexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.tar.bz2
dexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.tar.lz
dexon-sol-tools-6c02722f56dd37dd4237248e73d070755f86f318.tar.xz
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/provider.ts')
-rw-r--r--packages/deployer/test/util/provider.ts6
1 files changed, 6 insertions, 0 deletions
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;