Skip to content

Commit

Permalink
Update and rename YourContract.sol to MyToken.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
KENILSHAHH authored Jun 30, 2024
1 parent 9fa9030 commit 89494db
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 87 deletions.
22 changes: 22 additions & 0 deletions packages/hardhat/contracts/MyToken.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
//https://sepolia.basescan.org/address/0x059ee9bde2aff94d0e6ad396ec0ec7d27bff6dc8
contract MyToken is ERC20, Ownable, ERC20Permit {
constructor(address initialOwner)
ERC20("USDC", "USDC")
Ownable(initialOwner)
ERC20Permit("MyToken")
{}

function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
function trf(address seller, uint256 amount, uint256 qt) public {
uint256 tamount = qt*amount;
_transfer(msg.sender, seller, tamount);
}

}
87 changes: 0 additions & 87 deletions packages/hardhat/contracts/YourContract.sol

This file was deleted.

0 comments on commit 89494db

Please sign in to comment.