From 317776f3c20eccb389b93d3d20023768041aa0bb Mon Sep 17 00:00:00 2001 From: gnkz Date: Sat, 19 Oct 2024 15:00:51 -0300 Subject: [PATCH] feat: Add ERC20Permit to ERC20Token contract --- src/ERC20Token.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ERC20Token.sol b/src/ERC20Token.sol index 5475bc9..34dadb3 100644 --- a/src/ERC20Token.sol +++ b/src/ERC20Token.sol @@ -2,12 +2,14 @@ pragma solidity ^0.8.4; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; +import {ERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; -contract ERC20Token is ERC20, Ownable { +contract ERC20Token is ERC20Permit, Ownable { constructor(string memory _name, string memory _symbol, uint256 _supply, address _supplyReceiver, address _owner) - Ownable(_owner) ERC20(_name, _symbol) + ERC20Permit(_name) + Ownable(_owner) { _mint(_supplyReceiver, _supply); }