ERC20VotesMock.sol 502 B

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