Merge pull request #9394 from ethereum/fix-9391

Yul interpreter: Return addresses of type u160 for create and create2…
This commit is contained in:
chriseth
2020-07-20 18:38:43 +02:00
committed by GitHub
3 changed files with 30 additions and 2 deletions
@@ -304,11 +304,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