solidity/test/libsolidity/semanticTests/state/block_difficulty.sol

12 lines
194 B
Solidity
Raw Normal View History

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