Token ICO/IDO/ILO launchpad smart contract. It has all functions of Pinksale
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
486 B

module.exports = async function (taskArgs, hre) {
let contract = await ethers.getContract(taskArgs.contract)
let tokenId = taskArgs.tokenId
try {
let address = await contract.ownerOf(tokenId)
console.log(`✅ [${hre.network.name}] ownerOf(${tokenId})`)
console.log(` Owner address: ${address}`)
} catch (e) {
if(e?.reason) {
console.log(e.reason)
} else {
console.log(e)
}
}
}