23 lines
632 B
TypeScript
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"];
|