git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 33a823411795d572879d98dbdbbb5f2f8ecb888f

TestEnvironment: use Address directly for accounts

Alex Beregszaszi committed on 8/18/2016, 12:12:10 AM
Parent: d81f179bebcc9fbf77593bd782c2a3a8fad66ca1

Files changed

testEnvironment.jschanged
tests/interface/balance.jsonchanged
testEnvironment.jsView
@@ -15,9 +15,9 @@
1515
1616 if (data.accounts) {
1717 data.accounts.forEach((account) => {
1818 let tmp = account[1]
19- self.state.set(new Address(new Uint8Array(account[0])).toString(), {
19+ self.state.set(new Address(account[0]).toString(), {
2020 balance: new U256(new BN(tmp.balance, 16, 'le'))
2121 })
2222 })
2323 }
tests/interface/balance.jsonView
@@ -1,8 +1,8 @@
11 {
22 "accounts": [
33 [
4- [93, 72, 193, 1, 137, 4, 161, 114, 136, 104, 41, 187, 189, 156, 111, 74, 45, 6, 196, 123], {
4+ "0x5d48c1018904a172886829bbbd9c6f4a2d06c47b", {
55 "balance": [100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
66 }
77 ]
88 ]

Built with git-ssb-web