import { ethers } from "ethers"; //This function is the same as safeTransferFrom, except it also takes in a byte param called data export const safeTransferFromBytes = async ( reliquaryContract: ethers.Contract, from: string, to: string, tokenId: number, data: any ) => { try { const tx = await reliquaryContract.safeTransferFrom( from, to, tokenId, data ); await tx.wait(); } catch (error) { return error; } };