solidity/test/libsolidity/semanticTests/state/block_difficulty.sol
Alex Beregszaszi eb8af2caec Add basic support for the EVM version Paris
This mostly means testing with evmone, but instruction renaming of difficulty->prevrandao is omitted.
2022-11-21 14:56:46 +01:00

13 lines
217 B
Solidity

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