git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 6d77ad101453e8f18c589971f99e9d718ba6a243

Kernel: pass through executionOutcome

Alex Beregszaszi committed on 8/28/2016, 9:18:56 PM
Parent: 0a7a0a86bd0077be2dad52bd6df4d248b0ca4a6a

Files changed

index.jschanged
index.jsView
@@ -155,9 +155,13 @@
155155
156156 this.environment.state.get(address.toString()).set('code', code)
157157
158158 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
160164 }
161165 }
162166
163167 // run tx; the tx message handler
@@ -228,8 +232,9 @@
228232
229233 // save new state?
230234
231235 return {
236+ executionOutcome: ret.executionOutcome,
232237 accountCreated: isCreation ? ret.accountCreated : undefined,
233238 returnValue: isCreation ? undefined : ret.returnValue,
234239 gasLeft: ret.gasLeft,
235240 logs: ret.logs

Built with git-ssb-web