import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function cancel(uint256 listingId)",
params: [listingId]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});