aboutsummaryrefslogtreecommitdiffstats
path: root/test/exchange_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-07-07 05:51:44 +0800
committerGitHub <noreply@github.com>2017-07-07 05:51:44 +0800
commit18050b7ea3eae19626a7976c004b237287ff5363 (patch)
treebde30c03faf91a4385cfa1393a143c2281ee97b1 /test/exchange_wrapper_test.ts
parentf2611d5b2be4c4c1b8bcfc9c964a13faf2329316 (diff)
parent9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc (diff)
downloaddexon-sol-tools-18050b7ea3eae19626a7976c004b237287ff5363.tar
dexon-sol-tools-18050b7ea3eae19626a7976c004b237287ff5363.tar.gz
dexon-sol-tools-18050b7ea3eae19626a7976c004b237287ff5363.tar.bz2
dexon-sol-tools-18050b7ea3eae19626a7976c004b237287ff5363.tar.lz
dexon-sol-tools-18050b7ea3eae19626a7976c004b237287ff5363.tar.xz
dexon-sol-tools-18050b7ea3eae19626a7976c004b237287ff5363.tar.zst
dexon-sol-tools-18050b7ea3eae19626a7976c004b237287ff5363.zip
Merge pull request #94 from 0xProject/moveExchangeAddressGetters
Moves exchange contract address getters to zeroEx top level
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r--test/exchange_wrapper_test.ts20
1 files changed, 1 insertions, 19 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 0321eb569..45da44f54 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -44,7 +44,7 @@ describe('ExchangeWrapper', () => {
before(async () => {
web3 = web3Factory.create();
zeroEx = new ZeroEx(web3.currentProvider);
- [exchangeContractAddress] = await zeroEx.exchange.getAvailableContractAddressesAsync();
+ [exchangeContractAddress] = await zeroEx.getAvailableExchangeContractAddressesAsync();
userAddresses = await promisify(web3.eth.getAccounts)();
tokens = await zeroEx.tokenRegistry.getTokensAsync();
tokenUtils = new TokenUtils(tokens);
@@ -819,22 +819,4 @@ describe('ExchangeWrapper', () => {
expect(orderHash).to.equal(orderHashFromContract);
});
});
- describe('#getAvailableContractAddressesAsync', () => {
- it('returns the exchange contract addresses', async () => {
- const exchangeAddresses = await zeroEx.exchange.getAvailableContractAddressesAsync();
- _.map(exchangeAddresses, exchangeAddress => {
- assert.isETHAddressHex('exchangeAddress', exchangeAddress);
- });
- });
- });
- describe('#getProxyAuthorizedContractAddressesAsync', () => {
- it('returns the Proxy authorized exchange contract addresses', async () => {
- const exchangeAddresses = await zeroEx.exchange.getProxyAuthorizedContractAddressesAsync();
- for (const exchangeAddress of exchangeAddresses) {
- assert.isETHAddressHex('exchangeAddress', exchangeAddress);
- const isAuthorized = await zeroEx.proxy.isAuthorizedAsync(exchangeAddress);
- expect(isAuthorized).to.be.true();
- }
- });
- });
});