[ewasm] Implement "create" properly in EwasmInterpreter

This commit is contained in:
Alex Beregszaszi 2020-10-27 20:13:12 +00:00
parent 62028c90f0
commit 9dc5ceae94

View File

@ -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")
{