Support address().codehash

This commit is contained in:
Alex Beregszaszi
2020-12-09 14:58:27 +00:00
parent fca8026250
commit ad6739d0f6
12 changed files with 83 additions and 4 deletions
@@ -0,0 +1,11 @@
contract C {
function f() public view returns (bytes32) {
return address(this).codehash;
}
function g() public view returns (bytes32) {
return address(0).codehash;
}
}
// ====
// EVMVersion: >=constantinople
// ----