Skip to content

assertions:assert-timestamp

Assert the current block timestamp, on-chain.

assertions:assert-timestamp <operator> <expected> [message]
NameTypeDescription
operatorstringComparison operator: ==, >, <, >=, <=
expectednumberExpected block timestamp (unix seconds)
[message]stringRevert message when the assertion fails
load assertions
assertions:assert-timestamp >= 1893456000 "unlock period not reached"