From 2575cd7f62ba12a2397458b5d9389a371c477340 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 6 Jul 2018 10:27:05 -0400 Subject: [PATCH] set default balance when no one is there with simulator --- lib/tests/test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tests/test.js b/lib/tests/test.js index 2cd5d7fa..5fb85ccb 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -72,6 +72,9 @@ class Test { if (this.simOptions.accounts) { this.simOptions.accounts = this.simOptions.accounts.map((account) => { + if (!account.hexBalance) { + account.hexBalance = '0x8AC7230489E80000'; // 10 ether + } return {balance: account.hexBalance, secretKey: account.privateKey}; }); }