solidity/test/libsolidity/semanticTests/state/block_timestamp.sol
2022-05-19 20:23:28 +02:00

13 lines
309 B
Solidity

contract C {
constructor() {}
function f() public returns (uint) {
return block.timestamp;
}
}
// ====
// compileToEwasm: also
// ----
// constructor() # This is the 1st block #
// f() -> 0x1e # This is the 2nd block (each block is "15 seconds") #
// f() -> 0x2d # This is the 3rd block #