MyToken.sol 700 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.19;
  3. import "../../../token/ERC20/ERC20.sol";
  4. import "../../../token/ERC20/extensions/ERC20Permit.sol";
  5. import "../../../token/ERC20/extensions/ERC20Votes.sol";
  6. contract MyToken is ERC20, ERC20Permit, ERC20Votes {
  7. constructor() ERC20("MyToken", "MTK") ERC20Permit("MyToken") {}
  8. // The functions below are overrides required by Solidity.
  9. function _update(address from, address to, uint256 amount) internal override(ERC20, ERC20Votes) {
  10. super._update(from, to, amount);
  11. }
  12. function nonces(address owner) public view virtual override(ERC20Permit, Nonces) returns (uint256) {
  13. return super.nonces(owner);
  14. }
  15. }