Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 513 Bytes

solution-2.md

File metadata and controls

16 lines (13 loc) · 513 Bytes

// SPDX-License-Identifier: MIT pragma solidity ^0.8.9;

import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; import "@openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/[email protected]/access/Ownable.sol";

contract Parth is ERC20, ERC20Burnable, Ownable { constructor() ERC20("Parth", "PVM") { _mint(msg.sender, 100000 * 10 ** decimals()); }

function mint(address to, uint256 amount) public onlyOwner {
    _mint(to, amount);
}

}