mirror of
https://github.com/luxfhe/example-ticketing.git
synced 2026-10-30 18:13:12 +00:00
11 lines
484 B
TypeScript
11 lines
484 B
TypeScript
import { task } from "hardhat/config";
|
|
import type { TaskArguments } from "hardhat/types";
|
|
|
|
task("task:deployCounter").setAction(async function (taskArguments: TaskArguments, { ethers }) {
|
|
const signers = await ethers.getSigners();
|
|
const counterFactory = await ethers.getContractFactory("Counter");
|
|
const counter = await counterFactory.connect(signers[0]).deploy();
|
|
// await counter.waitForDeployment();
|
|
console.log("Counter deployed to: ", await counter.getAddress());
|
|
});
|