Skip to content

Commit

Permalink
Create H2OToken.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
flemmerz authored Dec 9, 2024
1 parent 2cd2335 commit 635e7c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions H2OToken.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract H2OToken is ERC20, Ownable {
constructor() ERC20("H2O Token", "H2O") {
_mint(msg.sender, 1000000 * 10 ** decimals()); // Initial supply
}

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

0 comments on commit 635e7c0

Please sign in to comment.