import { ethers } from "ethers"; export const getTokenOfOwnerByIndex = async ( reliquaryContract: ethers.Contract, ownerAddress: string, index: number ): Promise => { const tokenId = await reliquaryContract.tokenOfOwnerByIndex( ownerAddress, index ); return tokenId.toNumber(); };