Skip to main content
Version: v3.x

MockERC20Votes

A mock ERC20Votes contract

votes

uint256 votes

constructor

constructor(string name_, string symbol_) public

changeVotes

function changeVotes(uint256 _votes) external

Change the votes for the contract

This function is only for testing purposes

Parameters

NameTypeDescription
_votesuint256The new votes for the contract

getPastVotes

function getPastVotes(address, uint256) public view returns (uint256)

Get the past votes for an account

Return Values

NameTypeDescription
[0]uint256The past votes for the account