mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul interpreter: Return addresses of type u160 for create and create2 calls
This commit is contained in:
@@ -303,11 +303,11 @@ u256 EVMInstructionInterpreter::eval(
|
||||
case Instruction::CREATE:
|
||||
accessMemory(arg[1], arg[2]);
|
||||
logTrace(_instruction, arg);
|
||||
return 0xcccccc + arg[1];
|
||||
return u160(0xcccccc + arg[1]);
|
||||
case Instruction::CREATE2:
|
||||
accessMemory(arg[2], arg[3]);
|
||||
logTrace(_instruction, arg);
|
||||
return 0xdddddd + arg[1];
|
||||
return u160(0xdddddd + arg[1]);
|
||||
case Instruction::CALL:
|
||||
case Instruction::CALLCODE:
|
||||
// TODO assign returndata
|
||||
|
||||
Reference in New Issue
Block a user