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