Commit fdeda2b3f112344d1e935f83556be5203991411e
Kenel: gasLimit was renamed to gasLeft
Alex Beregszaszi committed on 8/23/2016, 12:31:46 AMParent: cfa65ab834c034419a449d152e4615b6171278c3
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -105,9 +105,9 @@ | ||
105 | 105 | environment.origin = call.from |
106 | 106 | environment.caller = call.from |
107 | 107 | environment.callData = call.data |
108 | 108 | environment.callValue = call.value |
109 | - environment.gasLimit = call.gasLimit | |
109 | + environment.gasLeft = call.gasLimit | |
110 | 110 | |
111 | 111 | //environment.setCallHandler(callHandler) |
112 | 112 | |
113 | 113 | const kernel = new Kernel(this, environment) |
@@ -117,9 +117,9 @@ | ||
117 | 117 | //this.environment.state.set(address, { stateRoot: stateRoot }) |
118 | 118 | |
119 | 119 | return { |
120 | 120 | 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), | |
122 | 122 | gasRefund: new U256(environment.gasRefund), |
123 | 123 | returnValue: environment.returnValue, |
124 | 124 | selfDestructAddress: environment.selfDestructAddress, |
125 | 125 | logs: environment.logs |
Built with git-ssb-web