mirror of
https://github.com/luxfhe/template-fhevm-hardhat.git
synced 2026-10-30 17:08:44 +00:00
18 lines
575 B
TypeScript
18 lines
575 B
TypeScript
import { DeployFunction } from "hardhat-deploy/types";
|
|
import { HardhatRuntimeEnvironment } from "hardhat/types";
|
|
|
|
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
const { deployer } = await hre.getNamedAccounts();
|
|
const { deploy } = hre.deployments;
|
|
|
|
const deployedFHECounter = await deploy("FHECounter", {
|
|
from: deployer,
|
|
log: true,
|
|
});
|
|
|
|
console.log(`FHECounter contract: `, deployedFHECounter.address);
|
|
};
|
|
export default func;
|
|
func.id = "deploy_fheCounter"; // id required to prevent reexecution
|
|
func.tags = ["FHECounter"];
|