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