import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function addItems((string name, uint256 price)[] _assets)",
params: [_assets]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});