Created
July 18, 2022 14:20
-
-
Save dharniel45/48862683ddc1d8826e13ce249ca96d9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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