diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-08-30 17:24:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 17:24:15 +0800 |
commit | 5f44b5f7111873a3958050503fff0ed098b65b04 (patch) | |
tree | f19caa7d2718c2506699e6c804ac6f837b197c5a /test/exchange_wrapper_test.ts | |
parent | 6e34cf2c3bdba83460fc4356ec2e62e712119ec9 (diff) | |
parent | c83e1d57fce55efe5e85221d0442d5f4c0fa0514 (diff) | |
download | dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.gz dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.bz2 dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.lz dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.xz dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.zst dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.zip |
Merge pull request #142 from 0xProject/feature/support_web3@1.0_provider
Feature/support web3@1.0 provider
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 080be774a..90ac37387 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -44,7 +44,7 @@ describe('ExchangeWrapper', () => { web3 = web3Factory.create(); zeroEx = new ZeroEx(web3.currentProvider); exchangeContractAddress = await zeroEx.exchange.getContractAddressAsync(); - userAddresses = await promisify(web3.eth.getAccounts)(); + userAddresses = await zeroEx.getAvailableAddressesAsync(); tokens = await zeroEx.tokenRegistry.getTokensAsync(); tokenUtils = new TokenUtils(tokens); zrxTokenAddress = tokenUtils.getProtocolTokenOrThrow().address; |