NitroPurchasables
VanarAdd Items
(addItems)
nonpayable
Use this function in your app
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});