Initial commit with 🏗️ create-eth @ 2.0.4
This commit is contained in:
22
packages/hardhat/deploy/00_deploy_funding_recipient.ts
Normal file
22
packages/hardhat/deploy/00_deploy_funding_recipient.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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"];
|
||||
Reference in New Issue
Block a user