mirror of
https://github.com/status-im/visual-identity.git
synced 2025-02-02 07:47:03 +00:00
Last tabulation condition was incorrect
This commit is contained in:
parent
e160a028cf
commit
93d96c07da
@ -131,7 +131,7 @@ contract ProposalManager is Controlled {
|
|||||||
public
|
public
|
||||||
{
|
{
|
||||||
Proposal storage proposal = proposals[_proposalId];
|
Proposal storage proposal = proposals[_proposalId];
|
||||||
require(proposal.lastTabulationTimestamp + tabulationBlockDelay > block.number);
|
require(proposal.lastTabulationTimestamp + tabulationBlockDelay < block.timestamp);
|
||||||
require(proposal.result == Vote.Null);
|
require(proposal.result == Vote.Null);
|
||||||
uint256 totalTokens = token.totalSupplyAt(proposal.voteBlockEnd);
|
uint256 totalTokens = token.totalSupplyAt(proposal.voteBlockEnd);
|
||||||
uint256 approvals = proposal.results[uint8(Vote.Approve)];
|
uint256 approvals = proposal.results[uint8(Vote.Approve)];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user