AddedLinkAndFixingGhost

This commit is contained in:
Aleksander Kryukov
2021-11-17 16:00:16 +02:00
parent a33b9b2bb0
commit 61b011869c
5 changed files with 44 additions and 12 deletions

View File

@ -84,7 +84,7 @@ abstract contract ERC20Votes is ERC20Permit {
*
* - `blockNumber` must have been already mined
*/
function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) {
function getPastVotes(address account, uint256 blockNumber) public view virtual returns (uint256) {
require(blockNumber < block.number, "ERC20Votes: block not yet mined");
return _checkpointsLookup(_checkpoints[account], blockNumber);
}