We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de9ada5 commit c5afa53Copy full SHA for c5afa53
scripts/deploy.js
@@ -0,0 +1,23 @@
1
+const hre = require("hardhat");
2
+
3
+async function main() {
4
+ await hre.run("compile");
5
6
+ const [deployer] = await hre.ethers.getSigners();
7
8
+ console.log("Deploying contracts with the account:", deployer.address);
9
10
+ const ProjectFactory = await hre.ethers.getContractFactory("ProjectFactory");
11
+ const projectFactory = await ProjectFactory.deploy();
12
13
+ await projectFactory.deployed();
14
15
+ console.log("ProjectFactory deployed to:", projectFactory.address);
16
+}
17
18
+main()
19
+ .then(() => process.exit(0))
20
+ .catch((error) => {
21
+ console.error(error);
22
+ process.exit(1);
23
+ });
0 commit comments