From ff7dc04d28bcafe8615af7a1277f27e1003394b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Guti=C3=A9rrez?= Date: Wed, 16 Jan 2019 11:02:48 +0100 Subject: [PATCH] using a random account (of a list) to run the integration test #107 --- src/examples/config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/examples/config.ts b/src/examples/config.ts index ebd8192..92bf3dc 100644 --- a/src/examples/config.ts +++ b/src/examples/config.ts @@ -4,12 +4,15 @@ import * as config from "./config/config.json" if (process.env.SEED_WORDS) { const seedphrase = process.env.SEED_WORDS + // There are 20 accounts availabe (19 + 1) + const accountIndex = Math.floor(Math.random() ** 19) // @ts-ignore config.web3Provider = new HDWalletProvider( seedphrase, config.nodeUri, - 0, 10, + accountIndex, + 2, ) }