Commit 2a3bf1027df45bfad23e4a6a51d80f945ed414a5
TestEnvironment: include coinbase, gasPrice and gasLimit
Alex Beregszaszi committed on 8/16/2016, 10:21:00 PMParent: 87507eebc829483ad8dbe3fde2dc21268871785b
Files changed
testEnvironment.js | changed |
testEnvironment.js | ||
---|---|---|
@@ -27,15 +27,27 @@ | ||
27 | 27 | if (data.caller) { |
28 | 28 | self.caller = new Uint8Array(data.caller) |
29 | 29 | } |
30 | 30 | |
31 | + if (data.coinbase) { | |
32 | + self.coinbase = new Uint8Array(data.coinbase) | |
33 | + } | |
34 | + | |
31 | 35 | if (data.callValue) { |
32 | 36 | self.callValue = new Uint8Array(data.callValue) |
33 | 37 | } |
34 | 38 | |
35 | 39 | if (data.callData) { |
36 | 40 | self.callData = hexStr2arrayBuf(data.callData) |
37 | 41 | } |
42 | + | |
43 | + if (data.gasPrice) { | |
44 | + self.gasPrice = data.gasPrice | |
45 | + } | |
46 | + | |
47 | + if (data.gasLimit) { | |
48 | + self.gasLimit = data.gasLimit | |
49 | + } | |
38 | 50 | } |
39 | 51 | } |
40 | 52 | |
41 | 53 | function hexStr2arrayBuf (string) { |
Built with git-ssb-web