refactor: update Hardhat config for cleaner network setup chore: remove outdated MockToken documentation fix: correct DEFAULT_SUPPLY initialization in MockToken module
15 lines
362 B
TypeScript
15 lines
362 B
TypeScript
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
|
|
import { ethers } from "ethers";
|
|
|
|
const DEFAULT_SUPPLY = ethers
|
|
.parseEther("20000000")
|
|
.toString();
|
|
|
|
export default buildModule("MockToken", m => {
|
|
const supply = m.getParameter("supply", DEFAULT_SUPPLY);
|
|
|
|
const token = m.contract("MockToken", [supply]);
|
|
|
|
return { token };
|
|
});
|