Skip to content

Instantly share code, notes, and snippets.

@mbvissers
Created September 2, 2021 14:39
Show Gist options
  • Save mbvissers/d2c50d78a7e0f0fc668e244769a0a3eb to your computer and use it in GitHub Desktop.
Save mbvissers/d2c50d78a7e0f0fc668e244769a0a3eb to your computer and use it in GitHub Desktop.
const hre = require("hardhat");
const WALLET_ADDRESS = "YOUR WALLET PUBLIC ADDRESS"
const CONTRACT_ADDRESS = "YOUR CONTRACT ADDRESS"
async function main(_URI) {
const NFT = await hre.ethers.getContractFactory("MyToken");
const contract = NFT.attach(CONTRACT_ADDRESS);
await contract._safeMint(WALLET_ADDRESS).then((txn) => {
// Log Txn
console.log(txn.hash)
return(txn)
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment