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
Name | Type | Description |
---|---|---|
_votes | uint256 | The new votes for the contract |
getPastVotes
function getPastVotes(address, uint256) public view returns (uint256)
Get the past votes for an account
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The past votes for the account |