Skip to content

Instantly share code, notes, and snippets.

@dharniel45
Created July 18, 2022 14:20
Show Gist options
  • Save dharniel45/48862683ddc1d8826e13ce249ca96d9e to your computer and use it in GitHub Desktop.
Save dharniel45/48862683ddc1d8826e13ce249ca96d9e to your computer and use it in GitHub Desktop.
const main = async () => {
 const nftContractFactory = await hre.ethers.getContractFactory('AfterApeNFT');
 const nftContract = await nftContractFactory.deploy();
 await nftContract.deployed();
 console.log("Contract deployed to: ", nftContract.address);
}
const runMain = async () => {
 try {
 await main();
 process.exit(0);
 } catch (error) {
 console.log(error);
 process.exit(1);
 }
};
runMain();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment