Last active
May 17, 2024 11:23
-
-
Save Apolloelephen/7daecb7a35bf8e2e93d89b29becfa4e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.24; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract MyToken is ERC20 { | |
constructor() ERC20("MyToken", "MT") { | |
_mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules"; | |
const TokenModule = buildModule("TokenModule", (m) => { | |
const token = m.contract("MyToken"); | |
return { token }; | |
}); | |
export default TokenModule; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment