diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-08-30 00:41:29 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-08-30 00:41:29 +0800 |
commit | 7d82d14a7d57566c5220a2342e21c755a9dc6a4a (patch) | |
tree | 891c78a585ae4b760c0e1e45210fed0f267347e2 /test/exchange_wrapper_test.ts | |
parent | e5bb3bc75eb2fe0e2a4adbd99d64362c305bdd3e (diff) | |
download | dexon-sol-tools-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar dexon-sol-tools-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.gz dexon-sol-tools-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.bz2 dexon-sol-tools-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.lz dexon-sol-tools-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.xz dexon-sol-tools-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.zst dexon-sol-tools-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.zip |
Use zeroEx.getAvailableAddressesAsync instead of web3.eth.getAccounts
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; |