Skip to content

Instantly share code, notes, and snippets.

@blutarche
Created July 19, 2022 08:43
Show Gist options
  • Save blutarche/4a0e2ee2f290813499c7dd2a6cfdc5e4 to your computer and use it in GitHub Desktop.
Save blutarche/4a0e2ee2f290813499c7dd2a6cfdc5e4 to your computer and use it in GitHub Desktop.
import { ethers } from "hardhat";
async function main() {
const LoveLetter = await ethers.getContractFactory("LoveLetter");
const loveLetter = await LoveLetter.deploy();
await loveLetter.deployed();
console.log("LoveLetter deployed to:", loveLetter.address);
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment