Last active
March 7, 2022 22:07
-
-
Save polluterofminds/655863033f274426e30e0516ce820897 to your computer and use it in GitHub Desktop.
Mint Token To Address
This file contains hidden or 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 hre = require("hardhat"); | |
async function main() { | |
const PFPinata = await hre.ethers.getContractFactory("PFPinatas"); | |
const contract = PFPinata.attach("YOUR DEPLOYED CONTRACT ADDRESS"); | |
const mintedNft = await contract.mintTo("RINKEBY WALLET TO USE"); | |
console.log("token minted", mintedNft); | |
} | |
main() | |
.then(() => process.exit(0)) | |
.catch((error) => { | |
console.error(error); | |
process.exit(1); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment