Skip to content

Commit

Permalink
Fix timelock warping (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro authored May 28, 2024
1 parent a532415 commit 987fd45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/utils/GovProposalHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ library GovProposalHelper {
if (state == IGovernor.ProposalState.Queued) {
console.log("Executing proposal");
// Wait for timelock
vm.roll(governance.proposalEta(proposalId) + 20);
vm.warp(block.timestamp + 2 days);
uint256 propEta = governance.proposalEta(proposalId);
vm.roll(block.number + 10);
vm.warp(propEta + 20);

governance.execute(proposalId);

Expand Down

0 comments on commit 987fd45

Please sign in to comment.