Skip to content

Commit

Permalink
feat: Update pragma solidity version and add ERC20Permit extension to…
Browse files Browse the repository at this point in the history
… WrappedNativeToken
  • Loading branch information
gnkz committed Oct 19, 2024
1 parent 76ab103 commit 4d927d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/WrappedNativeToken.sol
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.27;
pragma solidity ^0.8.4;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";

contract WrappedNativeToken is ERC20 {
contract WrappedNativeToken is ERC20Permit {
event Deposit(address indexed _sender, uint256 _amount);
event Withdrawal(address indexed _sender, uint256 _amount);

error NotEnoughBalance();

constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {}
constructor(string memory _name, string memory _symbol) ERC20Permit(_name) ERC20(_name, _symbol) {}

function deposit() public payable {
_mint(msg.sender, msg.value);
Expand Down

0 comments on commit 4d927d0

Please sign in to comment.