git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 3be5f3f12ef3ed8ddbb930ec9ce328ea4e9db64d

TestEnvironment: use environment.addAccount

Alex Beregszaszi committed on 8/26/2016, 9:37:55 PM
Parent: b96f738ab0a024a7779a0bc8ad922aeda692fa20

Files changed

testEnvironment.jschanged
testEnvironment.jsView
@@ -16,11 +16,11 @@
1616
1717 if (data.accounts) {
1818 data.accounts.forEach((account) => {
1919 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+ })
2323 })
2424 }
2525
2626 if (data.address) {

Built with git-ssb-web