aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/utils/web3_wrapper.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-06 14:03:14 +0800
committerFabio Berger <me@fabioberger.com>2018-04-06 14:03:14 +0800
commit24454938e51e40ae74809f15bd1f612c69c218ec (patch)
tree706a1a738d3e0a172c62343c0dfb5bad39163d9f /packages/0x.js/test/utils/web3_wrapper.ts
parent89a72ebf0dbff606d511ae51bfee7ffc0a5df18f (diff)
downloaddexon-0x-contracts-24454938e51e40ae74809f15bd1f612c69c218ec.tar.gz
dexon-0x-contracts-24454938e51e40ae74809f15bd1f612c69c218ec.tar.zst
dexon-0x-contracts-24454938e51e40ae74809f15bd1f612c69c218ec.zip
Move away from using web3 directly in 0x.js tests
Diffstat (limited to 'packages/0x.js/test/utils/web3_wrapper.ts')
-rw-r--r--packages/0x.js/test/utils/web3_wrapper.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/0x.js/test/utils/web3_wrapper.ts b/packages/0x.js/test/utils/web3_wrapper.ts
index 35898f553..b7b3f0b7f 100644
--- a/packages/0x.js/test/utils/web3_wrapper.ts
+++ b/packages/0x.js/test/utils/web3_wrapper.ts
@@ -1,10 +1,12 @@
import { devConstants, web3Factory } from '@0xproject/dev-utils';
+import { Provider } from '@0xproject/types';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as Web3 from 'web3';
import { constants } from './constants';
const web3 = web3Factory.create({ shouldUseInProcessGanache: true });
+const provider: Provider = web3.currentProvider;
const web3Wrapper = new Web3Wrapper(web3.currentProvider);
-export { web3, web3Wrapper };
+export { provider, web3Wrapper };