ERC20VotesMock.sol 560 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../token/ERC20/extensions/ERC20Votes.sol";
  4. contract ERC20VotesMock is ERC20Votes {
  5. constructor (string memory name, string memory symbol)
  6. ERC20(name, symbol)
  7. ERC20Permit(name)
  8. {}
  9. function mint(address account, uint256 amount) public {
  10. _mint(account, amount);
  11. }
  12. function burn(address account, uint256 amount) public {
  13. _burn(account, amount);
  14. }
  15. function getChainId() external view returns (uint256) {
  16. return block.chainid;
  17. }
  18. }