git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit a0505132b8612ca530c2f3038001b9749a8507e3

TestEnvironment: use U256 directly for values

Alex Beregszaszi committed on 8/18/2016, 12:18:06 AM
Parent: 33a823411795d572879d98dbdbbb5f2f8ecb888f

Files changed

testEnvironment.jschanged
tests/interface/balance.jsonchanged
tests/interface/callValue.jsonchanged
testEnvironment.jsView
@@ -16,9 +16,9 @@
1616 if (data.accounts) {
1717 data.accounts.forEach((account) => {
1818 let tmp = account[1]
1919 self.state.set(new Address(account[0]).toString(), {
20- balance: new U256(new BN(tmp.balance, 16, 'le'))
20+ balance: new U256(tmp.balance)
2121 })
2222 })
2323 }
2424
tests/interface/balance.jsonView
@@ -1,9 +1,9 @@
11 {
22 "accounts": [
33 [
44 "0x5d48c1018904a172886829bbbd9c6f4a2d06c47b", {
5- "balance": [100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
5+ "balance": "100"
66 }
77 ]
88 ]
99 }
tests/interface/callValue.jsonView
@@ -1,3 +1,3 @@
11 {
2- "callValue": [100]
2+ "callValue": "100"
33 }

Built with git-ssb-web