Files
sre-02-crowdfunding/packages/hardhat/deploy/00_deploy_funding_recipient.ts
2026-01-11 17:24:19 +07:00

23 lines
632 B
TypeScript

import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
/**
* Deploys a contract named "FundingRecipient" using the deployer account.
*
* @param hre HardhatRuntimeEnvironment object.
*/
const deployFundingRecipient: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;
await deploy("FundingRecipient", {
from: deployer,
log: true,
autoMine: true,
});
};
export default deployFundingRecipient;
deployFundingRecipient.tags = ["FundingRecipient"];