ERC20VotesMock.sol 546 B

123456789101112131415161718192021
  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) ERC20(name, symbol) ERC20Permit(name) {}
  6. function mint(address account, uint256 amount) public {
  7. _mint(account, amount);
  8. }
  9. function burn(address account, uint256 amount) public {
  10. _burn(account, amount);
  11. }
  12. function getChainId() external view returns (uint256) {
  13. return block.chainid;
  14. }
  15. }