Skip to content

Commit 2575cd7

Browse files
committed
set default balance when no one is there with simulator
1 parent 5bb1d33 commit 2575cd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/tests/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ class Test {
7272

7373
if (this.simOptions.accounts) {
7474
this.simOptions.accounts = this.simOptions.accounts.map((account) => {
75+
if (!account.hexBalance) {
76+
account.hexBalance = '0x8AC7230489E80000'; // 10 ether
77+
}
7578
return {balance: account.hexBalance, secretKey: account.privateKey};
7679
});
7780
}

0 commit comments

Comments
 (0)