-
Notifications
You must be signed in to change notification settings - Fork 161
VM Exception while processing transaction: reverted with reason string 'Governor: vote not currently active' #12
Comments
You can see the error in your error:
So, you're trying to vote on a proposal that isn't active yet. |
I had the same issue when following the video. In your deploy script "03-deploy-governor-contract.ts", change the args to:
I think the order was different in the video, so it resulted in a longer voting delay, which meant that your proposal wasn't active yet. |
oooo whoops! Is the code in the repo right tho? |
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? when I Queue in my governorContractI get this error how can i resolve it i put my 7 days to solve this plz give me some clue |
Greetings @Divyansh-singh08 , you stated that this happens if you want to queue it, so it happens if you calling the await governor.queue(...) method right? This is triggering the queue() function at the GovernorTimeLockControl.sol (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/governance/extensions/GovernorTimelockControl.sol). With what account are you sending this transaction? The error seems to state you want to execute the queue() function from an account which does not have the right to do it. Not the proposal needs to be successfull to queue() it, but this behaviour should not be the case regarding your error message. |
Change the parameter order of GovernorContract deployment in 03-deploy-governor.ts, and it works for me. The actual code in author's repo is actually correct:
|
Hey @SebasG22 , Found a solution, seems as if the the vote is not active so we just need to move forward in time a little bit, therefore I added another block l at the end of the vote function in the if (developmentChains.includes(network.name)) {
await moveBlocks(VOTING_PERIOD + 2);
} I think this is because of the 1 block that we wait for in the |
Hey @PatrickAlphaC ,
Thank you for the video and code, I'm running
yarn hardhat run scripts/vote.ts
and got the following error:.I tried to use the solution proposed here #6 but did not work for this case.
The text was updated successfully, but these errors were encountered: