Commit 4b9fedd40734548f93c4ee00a7a7bd604f0fb029
Interface: the address in create is returned as an Address instance
Alex Beregszaszi committed on 8/28/2016, 12:38:13 AMParent: 2742cd2e28df452d516de47fe16c907543b98f0f
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -360,10 +360,10 @@ | ||
360 | 360 | this.takeGas(32000) |
361 | 361 | |
362 | 362 | const value = U256.fromMemory(this.getMemory(valueOffset, U128_SIZE_BYTES)) |
363 | 363 | 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()) | |
366 | 366 | return errorCode |
367 | 367 | } |
368 | 368 | |
369 | 369 | /** |
Built with git-ssb-web