git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 4b9fedd40734548f93c4ee00a7a7bd604f0fb029

Interface: the address in create is returned as an Address instance

Alex Beregszaszi committed on 8/28/2016, 12:38:13 AM
Parent: 2742cd2e28df452d516de47fe16c907543b98f0f

Files changed

interface.jschanged
interface.jsView
@@ -360,10 +360,10 @@
360360 this.takeGas(32000)
361361
362362 const value = U256.fromMemory(this.getMemory(valueOffset, U128_SIZE_BYTES))
363363 const data = this.getMemory(dataOffset, length).slice(0)
364- const [result, errorCode] = this.environment.create(value, data)
365- this.setMemory(resultOffset, ADDRESS_SIZE_BYTES, result)
364+ const [address, errorCode] = this.environment.create(value, data)
365+ this.setMemory(resultOffset, ADDRESS_SIZE_BYTES, address.toMemory())
366366 return errorCode
367367 }
368368
369369 /**

Built with git-ssb-web