20 lines
592 B
TypeScript
20 lines
592 B
TypeScript
import hre from "hardhat";
|
|
async function main() {
|
|
const initialSupply = 1_000_000; // 1 juta token
|
|
const { ethers } = hre;
|
|
const AdelToken = await ethers.getContractFactory("AdelToken");
|
|
const token = await AdelToken.deploy(initialSupply, {
|
|
gasLimit: 5000000,
|
|
gasPrice: ethers.parseUnits("30", "gwei"),
|
|
});
|
|
|
|
await token.waitForDeployment();
|
|
|
|
console.log("✅ AdelToken deployed at:", await token.getAddress()); }
|
|
|
|
main().catch((error) => {
|
|
console.error(error);
|
|
process.exitCode = 1;
|
|
});
|
|
|
|
export {}; |