Skip to content

Commit

Permalink
tests: use timestampStore in proposer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Dec 22, 2023
1 parent bfa2cbd commit e6b23b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/invariant/actors/Proposer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ contract Proposer is BaseActor {
timestampStore.increaseCurrentBlockNumber(
_angleGovernor.$snapshotTimestampToSnapshotBlockNumber(proposalSnapshot)
);
vm.warp(_angleGovernor.proposalDeadline(proposalHash) + 1);
vm.roll(_angleGovernor.$snapshotTimestampToSnapshotBlockNumber(proposalSnapshot) + 1);
vm.warp(timestampStore.currentTimestamp());
vm.roll(timestampStore.currentBlockNumber());
IGovernor.ProposalState currentState = _angleGovernor.state(proposalHash);
if (currentState != IGovernor.ProposalState.Succeeded) {
vm.expectRevert(
Expand Down

0 comments on commit e6b23b0

Please sign in to comment.