Commit 33a823411795d572879d98dbdbbb5f2f8ecb888f
TestEnvironment: use Address directly for accounts
Alex Beregszaszi committed on 8/18/2016, 12:12:10 AMParent: d81f179bebcc9fbf77593bd782c2a3a8fad66ca1
Files changed
testEnvironment.js | changed |
tests/interface/balance.json | changed |
testEnvironment.js | ||
---|---|---|
@@ -15,9 +15,9 @@ | ||
15 | 15 | |
16 | 16 | if (data.accounts) { |
17 | 17 | data.accounts.forEach((account) => { |
18 | 18 | let tmp = account[1] |
19 | - self.state.set(new Address(new Uint8Array(account[0])).toString(), { | |
19 | + self.state.set(new Address(account[0]).toString(), { | |
20 | 20 | balance: new U256(new BN(tmp.balance, 16, 'le')) |
21 | 21 | }) |
22 | 22 | }) |
23 | 23 | } |
Built with git-ssb-web