Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 514 Bytes

solution-2.md

File metadata and controls

19 lines (13 loc) · 514 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 Sonu is ERC20, ERC20Burnable, Ownable {

constructor() ERC20("Sonu", "SON") {
    _mint(msg.sender, 100000 * 10 ** decimals());
}

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

}