mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-23 08:28:00 +00:00
e07d0f0cb7
- Move npm package from paritytech/js-revive - Rename package to `@parity/resolc`
23 lines
636 B
Solidity
23 lines
636 B
Solidity
// SPDX-License-Identifier: MIT
|
|
// Compatible with OpenZeppelin Contracts ^5.0.0
|
|
pragma solidity ^0.8.22;
|
|
|
|
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
import "@openzeppelin/contracts/access/Ownable.sol";
|
|
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
|
|
|
|
contract MyToken is ERC20, Ownable, ERC20Permit {
|
|
constructor(address initialOwner)
|
|
ERC20("MyToken", "MTK")
|
|
Ownable(initialOwner)
|
|
ERC20Permit("MyToken")
|
|
{
|
|
_mint(msg.sender, 100 * 10 ** decimals());
|
|
}
|
|
|
|
function mint(address to, uint256 amount) public onlyOwner {
|
|
_mint(to, amount);
|
|
}
|
|
}
|
|
|