aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/token_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:51:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:51:37 +0800
commit32e3cab116eedb940c5e1be2a11daeb31260ce77 (patch)
tree1ddb441ac988d63ff9f999bebd9c4f2f202a3bb6 /packages/0x.js/test/token_wrapper_test.ts
parent49ff4299c6628fcb0de831f4da1dd1a683305fa5 (diff)
downloaddexon-0x-contracts-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar.gz
dexon-0x-contracts-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar.zst
dexon-0x-contracts-32e3cab116eedb940c5e1be2a11daeb31260ce77.zip
Make BlockchainLifecycle accept only web3Wrapper
Diffstat (limited to 'packages/0x.js/test/token_wrapper_test.ts')
-rw-r--r--packages/0x.js/test/token_wrapper_test.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/0x.js/test/token_wrapper_test.ts b/packages/0x.js/test/token_wrapper_test.ts
index c562a4aac..0c6335d5e 100644
--- a/packages/0x.js/test/token_wrapper_test.ts
+++ b/packages/0x.js/test/token_wrapper_test.ts
@@ -22,11 +22,11 @@ import { chaiSetup } from './utils/chai_setup';
import { constants } from './utils/constants';
import { reportNodeCallbackErrors } from './utils/report_callback_errors';
import { TokenUtils } from './utils/token_utils';
+import { web3, web3Wrapper } from './utils/web3_wrapper';
chaiSetup.configure();
const expect = chai.expect;
-const web3 = web3Factory.create();
-const blockchainLifecycle = new BlockchainLifecycle(web3);
+const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
describe('TokenWrapper', () => {
let zeroEx: ZeroEx;
@@ -35,13 +35,11 @@ describe('TokenWrapper', () => {
let tokenUtils: TokenUtils;
let coinbase: string;
let addressWithoutFunds: string;
- let web3Wrapper: Web3Wrapper;
const config = {
networkId: constants.TESTRPC_NETWORK_ID,
};
before(async () => {
zeroEx = new ZeroEx(web3.currentProvider, config);
- web3Wrapper = new Web3Wrapper(web3.currentProvider);
userAddresses = await zeroEx.getAvailableAddressesAsync();
tokens = await zeroEx.tokenRegistry.getTokensAsync();
tokenUtils = new TokenUtils(tokens);