diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-07-07 05:51:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 05:51:44 +0800 |
commit | 18050b7ea3eae19626a7976c004b237287ff5363 (patch) | |
tree | bde30c03faf91a4385cfa1393a143c2281ee97b1 /test/exchange_wrapper_test.ts | |
parent | f2611d5b2be4c4c1b8bcfc9c964a13faf2329316 (diff) | |
parent | 9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc (diff) | |
download | dexon-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.ts | 20 |
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(); - } - }); - }); }); |