Merge pull request #605 from embark-framework/bug_fix/balance-fix
set default balance when no one is there with simulator
This commit is contained in:
commit
ffccbeabca
|
@ -72,6 +72,9 @@ class Test {
|
||||||
|
|
||||||
if (this.simOptions.accounts) {
|
if (this.simOptions.accounts) {
|
||||||
this.simOptions.accounts = this.simOptions.accounts.map((account) => {
|
this.simOptions.accounts = this.simOptions.accounts.map((account) => {
|
||||||
|
if (!account.hexBalance) {
|
||||||
|
account.hexBalance = '0x8AC7230489E80000'; // 10 ether
|
||||||
|
}
|
||||||
return {balance: account.hexBalance, secretKey: account.privateKey};
|
return {balance: account.hexBalance, secretKey: account.privateKey};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue