1234567891011121314151617 |
- import { ethers } from "hardhat";
- async function main() {
- const [deployer] = await ethers.getSigners();
- console.log("Deploying contracts with the account:", deployer.address);
- const MyToken = await ethers.getContractFactory("MyRewardToken");
- const myToken = await MyToken.deploy();
- await myToken.waitForDeployment();
- console.log("MyToken deployed to:", await myToken.getAddress());
- }
- main().catch((error) => {
- console.error(error);
- process.exitCode = 1;
- });
|