Remove dependency on util::160 in yulInterpreter

Instead apply explicit truncation or masking for readability.
This commit is contained in:
Alex Beregszaszi
2021-04-23 14:35:05 +01:00
parent 15decd2413
commit 37be1b3ed9
3 changed files with 13 additions and 12 deletions
@@ -410,7 +410,7 @@ u256 EwasmBuiltinInterpreter::evalEthBuiltin(string const& _fun, vector<uint64_t
readU128(arg[0]);
accessMemory(arg[1], arg[2]);
logTrace(evmasm::Instruction::CREATE, {});
writeAddress(arg[3], h160(h256(0xcccccc + arg[1])));
writeAddress(arg[3], h160(0xcccccc + arg[1]));
return 1;
}
else if (_fun == "getBlockDifficulty")