Implement address(...).code in the IR

This commit is contained in:
chriseth
2020-12-11 03:00:30 +00:00
committed by Alex Beregszaszi
parent 7b347b9ec2
commit baaf7c0db8
5 changed files with 30 additions and 3 deletions
@@ -12,8 +12,6 @@ contract C {
function g() public view returns (uint) { return address(0).code.length; }
function h() public view returns (uint) { return address(1).code.length; }
}
// ====
// compileViaYul: false
// ----
// constructor() ->
// initCode() -> 0x20, 0