Created
September 2, 2021 14:39
-
-
Save mbvissers/d2c50d78a7e0f0fc668e244769a0a3eb to your computer and use it in GitHub Desktop.
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"); | |
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