15 lines
399 B
TypeScript
15 lines
399 B
TypeScript
import { ethers } from "hardhat";
|
|
|
|
async function main() {
|
|
const initialSupply = 1_000_000;
|
|
const SyifaToken = await ethers.getContractFactory("SyifaToken");
|
|
const token = await SyifaToken.deploy(initialSupply);
|
|
await token.waitForDeployment();
|
|
console.log(`Token deployed at: ${await token.getAddress()}`);
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error(error);
|
|
process.exitCode = 1;
|
|
});
|