aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-28 16:43:37 +0800
committerFabio Berger <me@fabioberger.com>2018-06-28 16:43:37 +0800
commit646927962a9147272d8e3dcc95e2217de205280b (patch)
treea4e13c19a93b2a1f6b06b107467507f0c651b99e /packages/contracts/src
parentb56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd (diff)
downloaddexon-0x-contracts-646927962a9147272d8e3dcc95e2217de205280b.tar.gz
dexon-0x-contracts-646927962a9147272d8e3dcc95e2217de205280b.tar.zst
dexon-0x-contracts-646927962a9147272d8e3dcc95e2217de205280b.zip
Reduce the userAddresses to the individual addresses actually used by tests, as well as only deploy the number of ERC20 tokens needed for each test suite
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/utils/core_combinatorial_utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/core_combinatorial_utils.ts b/packages/contracts/src/utils/core_combinatorial_utils.ts
index becf19c06..5b725fbe3 100644
--- a/packages/contracts/src/utils/core_combinatorial_utils.ts
+++ b/packages/contracts/src/utils/core_combinatorial_utils.ts
@@ -55,7 +55,8 @@ export async function coreCombinatorialUtilsFactoryAsync(
web3Wrapper: Web3Wrapper,
txDefaults: Partial<TxData>,
): Promise<CoreCombinatorialUtils> {
- const userAddresses = await web3Wrapper.getAvailableAddressesAsync();
+ const accounts = await web3Wrapper.getAvailableAddressesAsync();
+ const userAddresses = _.slice(accounts, 0, 5);
const [ownerAddress, makerAddress, takerAddress] = userAddresses;
const makerPrivateKey = constants.TESTRPC_PRIVATE_KEYS[userAddresses.indexOf(makerAddress)];