git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 84e730af9e78896d112fb5818ef323f5d767f569

rename

wanderer committed on 10/30/2016, 5:45:36 PM
Parent: 7ff034895b684011d11e02744533ab8d7987b4e8

Files changed

index.jschanged
interface.jschanged
index.jsView
@@ -114,9 +114,9 @@
114114 // throw new Error('Not an eWASM contract')
115115
116116 // Transcompile code
117117 // FIXME: decide if these are the right values here: from: 0, gasLimit: 0, value: 0
118- code = this.callHandler({ from: Address.zero(), to: transcompilerContract, gasLimit: 0, value: new U256(0), data: code }).returnValue
118+ code = this.messageHandler({ from: Address.zero(), to: transcompilerContract, gasLimit: 0, value: new U256(0), data: code }).returnValue
119119
120120 if (code[0] === 0) {
121121 code = code.slice(1)
122122 } else {
interface.jsView
@@ -421,9 +421,9 @@
421421 this.takeGas(25000)
422422 }
423423 // // Special case for non-zero value
424424 if (!value.isZero()) {
425- this.takeGas(9000 - 2300 + gas)
425+ this.takeGas(9000 - 2300 + gas)
426426 this.takeGas(-gas)
427427 }
428428
429429 // const [errorCode, result] = this.environment.call(gas, address, value, data)

Built with git-ssb-web