Skip to content

Instantly share code, notes, and snippets.

View nizhunt's full-sized avatar
🏠
Working from home

Nishant Singh nizhunt

🏠
Working from home
View GitHub Profile
@shobhitic
shobhitic / MyToken.sol
Last active May 3, 2024 03:27
ERC20 Permit OpenZeppelin Tutorial - https://www.youtube.com/watch?v=lFKcga4Y6Ys
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts@4.7.3/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts@4.7.3/token/ERC20/extensions/draft-ERC20Permit.sol";
contract MyToken is ERC20, ERC20Permit {
constructor() ERC20("MyToken", "MTK") ERC20Permit("MyToken") {}
function mint(address to, uint256 value) external {