Commit 6d77ad101453e8f18c589971f99e9d718ba6a243
Kernel: pass through executionOutcome
Alex Beregszaszi committed on 8/28/2016, 9:18:56 PMParent: 0a7a0a86bd0077be2dad52bd6df4d248b0ca4a6a
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -155,9 +155,13 @@ | ||
155 | 155 | |
156 | 156 | this.environment.state.get(address.toString()).set('code', code) |
157 | 157 | |
158 | 158 | return { |
159 | - accountCreated: address | |
159 | + executionOutcome: 1, // success | |
160 | + gasLeft: new U256(this.environment.gasLeft), | |
161 | + gasRefund: new U256(this.environment.gasRefund), | |
162 | + accountCreated: address, | |
163 | + logs: this.environment.logs | |
160 | 164 | } |
161 | 165 | } |
162 | 166 | |
163 | 167 | // run tx; the tx message handler |
@@ -228,8 +232,9 @@ | ||
228 | 232 | |
229 | 233 | // save new state? |
230 | 234 | |
231 | 235 | return { |
236 | + executionOutcome: ret.executionOutcome, | |
232 | 237 | accountCreated: isCreation ? ret.accountCreated : undefined, |
233 | 238 | returnValue: isCreation ? undefined : ret.returnValue, |
234 | 239 | gasLeft: ret.gasLeft, |
235 | 240 | logs: ret.logs |
Built with git-ssb-web