Commit 43a35e7919fee4280b215005f92daea320a80582
Interface: gas is a mandatory argument of call
Alex Beregszaszi committed on 8/23/2016, 1:42:25 AMParent: 682f6674a0fc8dad41078c05d2dd54e7d71c0a42
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -354,11 +354,8 @@ | ||
354 | 354 | call (gas, addressOffset, valueOffset, dataOffset, dataLength, resultOffset, resultLength) { |
355 | 355 | // FIXME: count properly |
356 | 356 | this.takeGas(40) |
357 | 357 | |
358 | - if (gas === undefined) { | |
359 | - gas = this.gasLeft() | |
360 | - } | |
361 | 358 | // Load the params from mem |
362 | 359 | const address = new Address(this.getMemory(addressOffset, constants.ADDRESS_SIZE_BYTES)) |
363 | 360 | const value = new U256(this.getMemory(valueOffset, constants.BALANCE_SIZE_BYTES)) |
364 | 361 | const data = this.getMemory(dataOffset, dataLength) |
Built with git-ssb-web