git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit d81f179bebcc9fbf77593bd782c2a3a8fad66ca1

TestEnvironment: use Address directly ofr address/origin/caller/coinbase

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

Files changed

testEnvironment.jschanged
tests/interface/address.jsonchanged
tests/interface/caller.jsonchanged
tests/interface/origin.jsonchanged
testEnvironment.jsView
@@ -22,21 +22,21 @@
2222 })
2323 }
2424
2525 if (data.address) {
26- self.address = new Address(new Uint8Array(data.address))
26+ self.address = new Address(data.address)
2727 }
2828
2929 if (data.origin) {
30- self.origin = new Address(new Uint8Array(data.origin))
30+ self.origin = new Address(data.origin)
3131 }
3232
3333 if (data.caller) {
34- self.caller = new Address(new Uint8Array(data.caller))
34+ self.caller = new Address(data.caller)
3535 }
3636
3737 if (data.coinbase) {
38- self.coinbase = new Uint8Array(data.coinbase)
38+ self.coinbase = new Address(data.coinbase)
3939 }
4040
4141 if (data.callValue) {
4242 self.callValue = new U256(data.callValue)
tests/interface/address.jsonView
@@ -1,3 +1,3 @@
11 {
2- "address": [93,72,193,1,137,4,161,114,136,104,41,187,189,156,111,74,45,6,196,123]
2+ "address": "0x5d48c1018904a172886829bbbd9c6f4a2d06c47b"
33 }
tests/interface/caller.jsonView
@@ -1,3 +1,3 @@
11 {
2- "caller": [93,72,193,1,137,4,161,114,136,104,41,187,189,156,111,74,45,6,196,123]
2+ "caller": "0x5d48c1018904a172886829bbbd9c6f4a2d06c47b"
33 }
tests/interface/origin.jsonView
@@ -1,3 +1,3 @@
11 {
2- "origin": [93,72,193,1,137,4,161,114,136,104,41,187,189,156,111,74,45,6,196,123]
2+ "origin": "0x5d48c1018904a172886829bbbd9c6f4a2d06c47b"
33 }

Built with git-ssb-web