mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
262 B
Solidity
15 lines
262 B
Solidity
|
contract C {
|
||
|
function f() public view returns (uint256) {
|
||
|
return block.difficulty;
|
||
|
}
|
||
|
|
||
|
function g() public view returns (uint256 ret) {
|
||
|
assembly {
|
||
|
ret := difficulty()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// EVMVersion: <paris
|
||
|
// ----
|