Commit 84e730af9e78896d112fb5818ef323f5d767f569
rename
wanderer committed on 10/30/2016, 5:45:36 PMParent: 7ff034895b684011d11e02744533ab8d7987b4e8
Files changed
index.js | changed |
interface.js | changed |
index.js | ||
---|---|---|
@@ -114,9 +114,9 @@ | ||
114 | 114 | // throw new Error('Not an eWASM contract') |
115 | 115 | |
116 | 116 | // Transcompile code |
117 | 117 | // 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 | |
119 | 119 | |
120 | 120 | if (code[0] === 0) { |
121 | 121 | code = code.slice(1) |
122 | 122 | } else { |
interface.js | ||
---|---|---|
@@ -421,9 +421,9 @@ | ||
421 | 421 | this.takeGas(25000) |
422 | 422 | } |
423 | 423 | // // Special case for non-zero value |
424 | 424 | if (!value.isZero()) { |
425 | - this.takeGas(9000 - 2300 + gas) | |
425 | + this.takeGas(9000 - 2300 + gas) | |
426 | 426 | this.takeGas(-gas) |
427 | 427 | } |
428 | 428 | |
429 | 429 | // const [errorCode, result] = this.environment.call(gas, address, value, data) |
Built with git-ssb-web