aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/utils/web3_wrapper.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/test/utils/web3_wrapper.ts')
-rw-r--r--packages/contracts/test/utils/web3_wrapper.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/contracts/test/utils/web3_wrapper.ts b/packages/contracts/test/utils/web3_wrapper.ts
new file mode 100644
index 000000000..35a8095a6
--- /dev/null
+++ b/packages/contracts/test/utils/web3_wrapper.ts
@@ -0,0 +1,6 @@
+import { web3Factory } from '@0xproject/dev-utils';
+import { Web3Wrapper } from '@0xproject/web3-wrapper';
+
+const web3ProviderConfig = { shouldUseInProcessGanache: true };
+export const web3 = web3Factory.create(web3ProviderConfig);
+export const web3Wrapper = new Web3Wrapper(web3.currentProvider);