ERC721VotesMock.sol 632 B

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