aboutsummaryrefslogtreecommitdiffstats
path: root/test/ether_token_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 00:41:29 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 00:41:29 +0800
commit7d82d14a7d57566c5220a2342e21c755a9dc6a4a (patch)
tree891c78a585ae4b760c0e1e45210fed0f267347e2 /test/ether_token_wrapper_test.ts
parente5bb3bc75eb2fe0e2a4adbd99d64362c305bdd3e (diff)
downloaddexon-0x-contracts-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar
dexon-0x-contracts-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.gz
dexon-0x-contracts-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.bz2
dexon-0x-contracts-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.lz
dexon-0x-contracts-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.xz
dexon-0x-contracts-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.tar.zst
dexon-0x-contracts-7d82d14a7d57566c5220a2342e21c755a9dc6a4a.zip
Use zeroEx.getAvailableAddressesAsync instead of web3.eth.getAccounts
Diffstat (limited to 'test/ether_token_wrapper_test.ts')
-rw-r--r--test/ether_token_wrapper_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ether_token_wrapper_test.ts b/test/ether_token_wrapper_test.ts
index b40061a41..601800cd1 100644
--- a/test/ether_token_wrapper_test.ts
+++ b/test/ether_token_wrapper_test.ts
@@ -33,7 +33,7 @@ describe('EtherTokenWrapper', () => {
before(async () => {
web3 = web3Factory.create();
zeroEx = new ZeroEx(web3.currentProvider, zeroExConfig);
- userAddresses = await promisify(web3.eth.getAccounts)();
+ userAddresses = await zeroEx.getAvailableAddressesAsync();
addressWithETH = userAddresses[0];
wethContractAddress = await zeroEx.etherToken.getContractAddressAsync();
depositWeiAmount = (zeroEx as any)._web3Wrapper.toWei(new BigNumber(5));