Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Sep 9, 2024
1 parent ff25d10 commit dfc7a17
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/governance/utils/VotesOverridable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ abstract contract VotesOverridable is Votes {
function getPastBalanceOf(address account, uint256 timepoint) public view virtual returns (uint256) {
uint48 currentTimepoint = clock();
if (timepoint >= currentTimepoint) {
// Note this ERC is not relevant to the specific error. Should probably be a different error.
revert ERC5805FutureLookup(timepoint, currentTimepoint);
}
return _balanceOfCheckpoints[account].upperLookupRecent(timepoint.toUint48());
Expand Down

0 comments on commit dfc7a17

Please sign in to comment.