git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 43a35e7919fee4280b215005f92daea320a80582

Interface: gas is a mandatory argument of call

Alex Beregszaszi committed on 8/23/2016, 1:42:25 AM
Parent: 682f6674a0fc8dad41078c05d2dd54e7d71c0a42

Files changed

interface.jschanged
interface.jsView
@@ -354,11 +354,8 @@
354354 call (gas, addressOffset, valueOffset, dataOffset, dataLength, resultOffset, resultLength) {
355355 // FIXME: count properly
356356 this.takeGas(40)
357357
358- if (gas === undefined) {
359- gas = this.gasLeft()
360- }
361358 // Load the params from mem
362359 const address = new Address(this.getMemory(addressOffset, constants.ADDRESS_SIZE_BYTES))
363360 const value = new U256(this.getMemory(valueOffset, constants.BALANCE_SIZE_BYTES))
364361 const data = this.getMemory(dataOffset, dataLength)

Built with git-ssb-web