mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[ewasm] Implement "create" properly in EwasmInterpreter
This commit is contained in:
parent
62028c90f0
commit
9dc5ceae94
@ -396,7 +396,8 @@ u256 EwasmBuiltinInterpreter::evalEthBuiltin(string const& _fun, vector<uint64_t
|
||||
// TODO access memory
|
||||
// TODO use writeAddress to store resulting address
|
||||
logTrace(evmasm::Instruction::CREATE, {});
|
||||
return 0xcccccc + arg[1];
|
||||
writeAddress(arg[3], h160(h256(0xcccccc + arg[1])));
|
||||
return 1;
|
||||
}
|
||||
else if (_fun == "getBlockDifficulty")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user