2020-04-26 00:18:10 +00:00
|
|
|
contract C {
|
|
|
|
function f() public returns(bytes32) {
|
|
|
|
return blockhash(1);
|
|
|
|
}
|
|
|
|
function g() public returns(bytes32) {
|
|
|
|
return blockhash(2);
|
|
|
|
}
|
|
|
|
function h() public returns(bytes32) {
|
|
|
|
return blockhash(3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-03-12 23:02:36 +00:00
|
|
|
// compileViaYul: also
|
2020-04-26 00:18:10 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 0x3737373737373737373737373737373737373737373737373737373737373738
|
|
|
|
// g() -> 0x3737373737373737373737373737373737373737373737373737373737373739
|
|
|
|
// h() -> 0x373737373737373737373737373737373737373737373737373737373737373a
|