From e6b23b08b4e6cc8ca49cdf72bd76224465785442 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <0xtekgrinder@protonmail.com> Date: Fri, 22 Dec 2023 09:55:18 -0500 Subject: [PATCH] tests: use timestampStore in proposer --- test/invariant/actors/Proposer.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/invariant/actors/Proposer.t.sol b/test/invariant/actors/Proposer.t.sol index 79e366c..7b6772c 100644 --- a/test/invariant/actors/Proposer.t.sol +++ b/test/invariant/actors/Proposer.t.sol @@ -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(