import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns (uint256 amountA, uint256 amountB, uint256 liquidity)",
params: [tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});