mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
20 lines
538 B
TypeScript
20 lines
538 B
TypeScript
|
import { Contract } from "@ethersproject/contracts";
|
||
|
import { 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);
|
||
|
}
|
||
|
|
||
|
main()
|
||
|
.then(() => process.exit(0))
|
||
|
.catch((error: Error) => {
|
||
|
console.error(error);
|
||
|
process.exit(1);
|
||
|
});
|