Skip to content

Commit

Permalink
feat: Add ERC20Permit to ERC20Token contract (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnkz authored Oct 19, 2024
1 parent 6fa68a0 commit e6ee923
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ERC20Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e6ee923

Please sign in to comment.