git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 2a3bf1027df45bfad23e4a6a51d80f945ed414a5

TestEnvironment: include coinbase, gasPrice and gasLimit

Alex Beregszaszi committed on 8/16/2016, 10:21:00 PM
Parent: 87507eebc829483ad8dbe3fde2dc21268871785b

Files changed

testEnvironment.jschanged
testEnvironment.jsView
@@ -27,15 +27,27 @@
2727 if (data.caller) {
2828 self.caller = new Uint8Array(data.caller)
2929 }
3030
31+ if (data.coinbase) {
32+ self.coinbase = new Uint8Array(data.coinbase)
33+ }
34+
3135 if (data.callValue) {
3236 self.callValue = new Uint8Array(data.callValue)
3337 }
3438
3539 if (data.callData) {
3640 self.callData = hexStr2arrayBuf(data.callData)
3741 }
42+
43+ if (data.gasPrice) {
44+ self.gasPrice = data.gasPrice
45+ }
46+
47+ if (data.gasLimit) {
48+ self.gasLimit = data.gasLimit
49+ }
3850 }
3951 }
4052
4153 function hexStr2arrayBuf (string) {

Built with git-ssb-web