diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-30 21:06:43 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-30 23:01:37 +0800 |
commit | 5a4c0bff6a54f605040141b7b1a64c6a33a339b0 (patch) | |
tree | 207ce7123ea8f566687c78faaa4c2818c7939863 /packages/contracts/test/exchange/helpers.ts | |
parent | 6205209fbbb5dbebbf225e1cef76c3e86117d356 (diff) | |
download | dexon-sol-tools-5a4c0bff6a54f605040141b7b1a64c6a33a339b0.tar dexon-sol-tools-5a4c0bff6a54f605040141b7b1a64c6a33a339b0.tar.gz dexon-sol-tools-5a4c0bff6a54f605040141b7b1a64c6a33a339b0.tar.bz2 dexon-sol-tools-5a4c0bff6a54f605040141b7b1a64c6a33a339b0.tar.lz dexon-sol-tools-5a4c0bff6a54f605040141b7b1a64c6a33a339b0.tar.xz dexon-sol-tools-5a4c0bff6a54f605040141b7b1a64c6a33a339b0.tar.zst dexon-sol-tools-5a4c0bff6a54f605040141b7b1a64c6a33a339b0.zip |
Remove accounts magic from tests
Diffstat (limited to 'packages/contracts/test/exchange/helpers.ts')
-rw-r--r-- | packages/contracts/test/exchange/helpers.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/contracts/test/exchange/helpers.ts b/packages/contracts/test/exchange/helpers.ts index 047ab899a..5efce41a4 100644 --- a/packages/contracts/test/exchange/helpers.ts +++ b/packages/contracts/test/exchange/helpers.ts @@ -30,8 +30,7 @@ describe('Exchange', () => { before(async () => { const accounts = await web3Wrapper.getAvailableAddressesAsync(); - maker = accounts[0]; - feeRecipient = accounts[1] || accounts[accounts.length - 1]; + [maker, feeRecipient] = accounts; const tokenRegistry = await deployer.deployAsync(ContractName.TokenRegistry); const tokenTransferProxy = await deployer.deployAsync(ContractName.TokenTransferProxy); const [rep, dgd, zrx] = await Promise.all([ |