Implement extcodehash (#77)

This commit is contained in:
Ermal Kaleci authored and GitHub committed 2024-10-21 10:13:50 +02:00
1 parent 82ae22c163
commit ee83d28a51
10 files changed
+582 -477

No files matched your search

+12
View File
@@ -14,4 +14,16 @@ contract ExtCode {
ret := codesize()
}
}
function ExtCodeHash(address who) public view returns (bytes32 ret) {
assembly {
ret := extcodehash(who)
}
}
function CodeHash() public view returns (bytes32 ret) {
assembly {
ret := extcodehash(address())
}
}
}