|
@@ -1,14 +1,13 @@
|
|
|
-import { Contract } from "@ethersproject/contracts";
|
|
|
// We require the Hardhat Runtime Environment explicitly here. This is optional but useful for running the
|
|
|
// script in a standalone fashion through `node <script>`. When running the script with `hardhat run <script>`,
|
|
|
// you'll find the Hardhat Runtime Environment's members available in the global scope.
|
|
|
import { ethers } from "hardhat";
|
|
|
|
|
|
-import { Greeter__factory } from "../typechain";
|
|
|
+import { Greeter, 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!");
|
|
|
+ const greeter: Greeter = await Greeter.deploy("Hello, Hardhat!");
|
|
|
await greeter.deployed();
|
|
|
|
|
|
console.log("Greeter deployed to: ", greeter.address);
|