15 lines
438 B
Solidity
15 lines
438 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.24;
|
|
|
|
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
|
|
|
|
contract MyToken is ERC20, Ownable {
|
|
constructor() ERC20("Bagel Token", "BT") Ownable(msg.sender) {
|
|
}
|
|
|
|
function mint(address account, uint256 amount) external onlyOwner {
|
|
_mint(account, amount);
|
|
}
|
|
}
|