Skip to content

Commit

Permalink
fix: real voting timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoAcosta committed Nov 6, 2024
1 parent 1e33cfa commit 38e5dac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/questions/Question.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ abstract contract Question is IQuestion, PlasaContext {
option.voteCount++;
option.pointsAtDeadline += votingPower(msg.sender);

uint256 timestamp = (block.timestamp / 1 days) * 1 days;
emit Voted(msg.sender, _getUsername(msg.sender), optionId, votingPower(msg.sender), timestamp);
emit Voted(msg.sender, _getUsername(msg.sender), optionId, votingPower(msg.sender), block.timestamp);
}

/// @inheritdoc IQuestion
Expand Down

0 comments on commit 38e5dac

Please sign in to comment.