dsa-connectors-2.0/scripts/deployment/deployManually.ts

24 lines
614 B
TypeScript
Raw Permalink Normal View History

2023-12-15 22:50:02 +00:00
import { Contract } from "@ethersproject/contracts";
import hre, { ethers } from "hardhat";
import { Greeter__factory } from "../../typechain";
async function main(): Promise<void> {
const Greeter: Greeter__factory = await ethers.getContractFactory("Greeter");
const greeter: Contract = await Greeter.deploy("Hello, Buidler!");
await greeter.deployed();
console.log("Greeter deployed to: ", greeter.address);
await hre.run("verify:verify", {
address: greeter.address
});
}
main()
.then(() => process.exit(0))
.catch((error: Error) => {
console.error(error);
process.exit(1);
});