20 lines
537 B
JavaScript
20 lines
537 B
JavaScript
const { ethers } = require("hardhat");
|
|
|
|
async function main() {
|
|
const [deployer] = await ethers.getSigners();
|
|
console.log("Deploying contracts with the account:", deployer.address);
|
|
|
|
// Deploying Faucet
|
|
console.log("\nDeploying Faucet...");
|
|
const Faucet = await ethers.getContractFactory("Faucet");
|
|
const faucet = await Faucet.deploy();
|
|
console.log("Faucet deployed to:", faucet.target);
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error);
|
|
process.exit(1);
|
|
});
|