Skip to content

Instantly share code, notes, and snippets.

@polluterofminds
Last active March 7, 2022 22:07
Show Gist options
  • Save polluterofminds/655863033f274426e30e0516ce820897 to your computer and use it in GitHub Desktop.
Save polluterofminds/655863033f274426e30e0516ce820897 to your computer and use it in GitHub Desktop.
Mint Token To Address
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