import { ethers } from "ethers"; export const getOwnerOf = async ( reliquaryContract: ethers.Contract, tokenId: number ) => { try { const ownerAddress = await reliquaryContract.ownerOf(tokenId); return ownerAddress.toString(); } catch (error) { return error; } };