Skip to content

Commit

Permalink
Merge branch 'develop' into feat/sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeysantoro committed Dec 21, 2021
2 parents 1d271e5 + ed1c0d2 commit 4454c37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/utils/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ export async function execProposal(voterAddress, governorAlphaAddress, totalValu
console.log('Vote already began');
}

await governor.connect(signer).castVote(proposalNo, 1);
console.log('Casted vote');

proposal = await governor.proposals(proposalNo);
const { endBlock } = proposal;

// Advance to after vote completes and queue the transaction
if (toBN(await time.latestBlock()).lt(toBN(endBlock))) {
await governor.connect(signer).castVote(proposalNo, 1);
console.log('Casted vote');

console.log(`Advancing To: ${endBlock}`);
await time.advanceBlockTo(endBlock);

Expand Down

0 comments on commit 4454c37

Please sign in to comment.