EVMinterface.jsView |
---|
426 | 426 | */ |
427 | 427 | _call (gasHigh, gasLow, addressOffset, valueOffset, dataOffset, dataLength, resultOffset, resultLength) { |
428 | 428 | const gas = from64bit(gasHigh, gasLow) |
429 | 429 | |
430 | | - const address = Address.fromMemory(this.getMemory(addressOffset, ADDRESS_SIZE_BYTES)) |
| 430 | + const address = [...this.getMemory(addressOffset, ADDRESS_SIZE_BYTES)] |
431 | 431 | const value = U256.fromMemory(this.getMemory(valueOffset, U128_SIZE_BYTES)) |
432 | 432 | |
433 | 433 | this.takeGas(40) |
434 | 434 | |
516 | 516 | |
517 | 517 | this.takeGas(40) |
518 | 518 | |
519 | 519 | const data = this.getMemory(dataOffset, dataLength).slice(0) |
520 | | - const address = Address.fromMemory(this.getMemory(addressOffset, ADDRESS_SIZE_BYTES)) |
| 520 | + const address = [...this.getMemory(addressOffset, ADDRESS_SIZE_BYTES)] |
521 | 521 | const [errorCode, result] = this.environment.callDelegate(gas, address, data) |
522 | 522 | this.setMemory(resultOffset, resultLength, result) |
523 | 523 | return errorCode |
524 | 524 | } |