Commit d81f179bebcc9fbf77593bd782c2a3a8fad66ca1
TestEnvironment: use Address directly ofr address/origin/caller/coinbase
Alex Beregszaszi committed on 8/18/2016, 12:10:58 AMParent: edf051da13e67c66b77b5fa320dee23f70891681
Files changed
testEnvironment.js | changed |
tests/interface/address.json | changed |
tests/interface/caller.json | changed |
tests/interface/origin.json | changed |
testEnvironment.js | ||
---|---|---|
@@ -22,21 +22,21 @@ | ||
22 | 22 | }) |
23 | 23 | } |
24 | 24 | |
25 | 25 | if (data.address) { |
26 | - self.address = new Address(new Uint8Array(data.address)) | |
26 | + self.address = new Address(data.address) | |
27 | 27 | } |
28 | 28 | |
29 | 29 | if (data.origin) { |
30 | - self.origin = new Address(new Uint8Array(data.origin)) | |
30 | + self.origin = new Address(data.origin) | |
31 | 31 | } |
32 | 32 | |
33 | 33 | if (data.caller) { |
34 | - self.caller = new Address(new Uint8Array(data.caller)) | |
34 | + self.caller = new Address(data.caller) | |
35 | 35 | } |
36 | 36 | |
37 | 37 | if (data.coinbase) { |
38 | - self.coinbase = new Uint8Array(data.coinbase) | |
38 | + self.coinbase = new Address(data.coinbase) | |
39 | 39 | } |
40 | 40 | |
41 | 41 | if (data.callValue) { |
42 | 42 | self.callValue = new U256(data.callValue) |
tests/interface/address.json | ||
---|---|---|
@@ -1,3 +1,3 @@ | ||
1 | 1 | { |
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" | |
3 | 3 | } |
Built with git-ssb-web