import { ethers } from "ethers"; export const approve = async ( reliquaryContract: ethers.Contract, toAddress: string, tokenId: number ) => { try { const tx = await reliquaryContract.approve(toAddress, tokenId); await tx.wait(); } catch (error) { return error; } };