Skip to content

Commit

Permalink
test(certora): timestamp back with uint64 with require
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Jan 27, 2025
1 parent 79c60e7 commit 4740c86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions certora/specs/Marketplace.spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ hook Sstore currentContract._marketplaceTotals.sent uint256 defaultValue (uint25
totalSent = totalSent + defaultValue - defaultValue_old;
}

ghost mathint lastBlockTimestampGhost;
ghost uint64 lastBlockTimestampGhost;

hook TIMESTAMP uint v {
require lastBlockTimestampGhost <= to_mathint(v);
lastBlockTimestampGhost = to_mathint(v);
require v < max_uint64;
require lastBlockTimestampGhost <= assert_uint64(v);
lastBlockTimestampGhost = assert_uint64(v);
}

ghost mapping(MarketplaceHarness.SlotId => mapping(Periods.Period => bool)) _missingMirror {
Expand Down

0 comments on commit 4740c86

Please sign in to comment.