git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit fdeda2b3f112344d1e935f83556be5203991411e

Kenel: gasLimit was renamed to gasLeft

Alex Beregszaszi committed on 8/23/2016, 12:31:46 AM
Parent: cfa65ab834c034419a449d152e4615b6171278c3

Files changed

index.jschanged
index.jsView
@@ -105,9 +105,9 @@
105105 environment.origin = call.from
106106 environment.caller = call.from
107107 environment.callData = call.data
108108 environment.callValue = call.value
109- environment.gasLimit = call.gasLimit
109+ environment.gasLeft = call.gasLimit
110110
111111 //environment.setCallHandler(callHandler)
112112
113113 const kernel = new Kernel(this, environment)
@@ -117,9 +117,9 @@
117117 //this.environment.state.set(address, { stateRoot: stateRoot })
118118
119119 return {
120120 executionOutcome: 1, // success
121- gasLeft: new U256(environment.gasLimit), // this starts as the limit and results as the gas left
121+ gasLeft: new U256(environment.gasLeft),
122122 gasRefund: new U256(environment.gasRefund),
123123 returnValue: environment.returnValue,
124124 selfDestructAddress: environment.selfDestructAddress,
125125 logs: environment.logs

Built with git-ssb-web