UNPKG

solcosm

Version:

Solidity interfaces and inheritable contracts for Cosmos SDK structs, messages and queries

18 lines (13 loc) 453 B
import { ethers } from "hardhat"; async function main() { const MyContract = await ethers.getContractFactory("MyContract"); const mycontract = await MyContract.deploy(); await mycontract.deployed(); console.log(`MyContract deployed to ${mycontract.address}`); } // 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; });