16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
|
import { ethers } from "hardhat";
|
||
|
|
||
|
async function main() {
|
||
|
const proposal = await ethers.deployContract("Proposal", []);
|
||
|
await proposal.waitForDeployment();
|
||
|
|
||
|
console.log(`Proposal deployed to ${proposal.target}`);
|
||
|
}
|
||
|
|
||
|
// We recommend this pattern to be able to use async/await everywhere
|
||
|
// and properly handle errors.
|
||
|
main().catch((error) => {
|
||
|
console.error(error);
|
||
|
process.exitCode = 1;
|
||
|
});
|