/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */ import { ethers } from 'ethers' import { execute, QueryOption } from '../../common/utils/execute' export type CreateDescriptorOfPropertyByPayloadCaller = ( contract: ethers.Contract, ) => (propertyAddress: string, payload: string | Uint8Array) => Promise export const createDescriptorOfPropertyByPayloadCaller: CreateDescriptorOfPropertyByPayloadCaller = (contract: ethers.Contract) => async ( propertyAddress: string, payload: string | Uint8Array, ): Promise => { const res = execute({ contract, method: 'descriptorOfPropertyByPayload', args: [propertyAddress, payload], mutation: false, }) return res }