set default balance when no one is there with simulator

This commit is contained in:
Jonathan Rainville 2018-07-06 10:27:05 -04:00
parent 5bb1d33739
commit 2575cd7f62
1 changed files with 3 additions and 0 deletions

View File

@ -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};
});
}