solidity/test/libsolidity/semanticTests/state/block_difficulty.sol
2021-04-23 17:00:01 +01:00

13 lines
218 B
Solidity

contract C {
function f() public returns (uint) {
return block.difficulty;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 200000000
// f() -> 200000000
// f() -> 200000000