Commit 3be5f3f12ef3ed8ddbb930ec9ce328ea4e9db64d
TestEnvironment: use environment.addAccount
Alex Beregszaszi committed on 8/26/2016, 9:37:55 PMParent: b96f738ab0a024a7779a0bc8ad922aeda692fa20
Files changed
testEnvironment.js | changed |
testEnvironment.js | ||
---|---|---|
@@ -16,11 +16,11 @@ | ||
16 | 16 | |
17 | 17 | if (data.accounts) { |
18 | 18 | data.accounts.forEach((account) => { |
19 | 19 | let tmp = account[1] |
20 | - self.state.set(new Address(account[0]).toString(), new Map( | |
21 | - [['balance', new U256(tmp.balance)]] | |
22 | - )) | |
20 | + self.addAccount(new Address(account[0]), { | |
21 | + balance: new U256(tmp.balance) | |
22 | + }) | |
23 | 23 | }) |
24 | 24 | } |
25 | 25 | |
26 | 26 | if (data.address) { |
Built with git-ssb-web