import { ethers } from 'ethers' import { execute, FallbackableOverrides, MutationOption, } from '../../common/utils/execute' import type { TransactionResponse } from 'ethers' export type CreateSetTokenURIImageCaller = ( contract: ethers.Contract, ) => ( tokenId: number, data: string, overrides?: FallbackableOverrides, ) => Promise export const createSetTokenURIImageCaller: CreateSetTokenURIImageCaller = (contract: ethers.Contract) => async (tokenId: number, data: string, overrides?: FallbackableOverrides) => execute({ contract, method: 'setTokenURIImage', mutation: true, args: [String(tokenId), data], overrides, })