Last active
March 7, 2022 22:06
-
-
Save polluterofminds/0f7c91fc181b63e13081c5f08e462093 to your computer and use it in GitHub Desktop.
Get Token Owner
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 CONTRACT ADDRESS"); | |
const owner = await contract.ownerOf(1); | |
console.log({owner}); | |
} | |
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